on master help sign in
Update tests to work without any imports
4b559e0Evan Czaplicki
tests/test-files/good/AliasSubstitution.elm+2−2
@@ -1,7 +1,7 @@
1
1
2
2
3−type alias Vec2Ext a =
3+type alias Vec2Ext record =
4− { a | x:Float, y:Float }
4+ { record | x:Float, y:Float }
5
5
6
6
7type alias Vec2 =
7type alias Vec2 =
tests/test-files/good/Ports.elm+10−6
@@ -1,17 +1,21 @@
1
1
2-- incoming
2-- incoming
3input userID : String
3input userID : String
4−input signal : Signal Int
4+input number : Int
5input tuple : (Float,Bool)
5input tuple : (Float,Bool)
6input array : List Int
6input array : List Int
7input record : { x:Float, y:Float }
7input record : { x:Float, y:Float }
8
8
9-- outgoing
9-- outgoing
10output fortyTwo : Int
10output fortyTwo : Int
11−output fortyTwo = 42
11+output fortyTwo =
12+ 42
12
13
13−output time : Signal Float
14−output time = every second
15
14
15+output time : Float
16+output time =
17+ 3.14
18+
16−output students : Signal (List {name:String, age:Int})
19+output students : List { name:String, age:Int }
17−output students = constant []
20+output students =
21+ [ { name = "Tom", age = 42 } ]
tests/test-files/good/PortsWithTypeAliases.elm+5−4
@@ -1,12 +1,13 @@
1
1
2+
2type alias Point2D =
3type alias Point2D =
3 Point Float Float
4 Point Float Float
4
5
5−type alias Point a b =
6+type alias Point x y =
6− { x:a, y:b }
7+ { x:x, y:y }
7
8
8
9
9−input points : Signal Point2D
10+input points : Point2D
10
11
11
12
12−input pairs : Signal (Point String String)
13+input pairs : Point String String