on master help sign in
Update tests to work without any imports
commit4b559e033c4c3f9f33a984dd28b636b899a87775 authorEvan Czaplicki <info@elm-lang.org> dateMon 2 Mar 2015, 10:20 (12 years ago) parentcf07718
3 files changed+17−12
tests/test-files/good/AliasSubstitution.elm+2−2 tests/test-files/good/Ports.elm+10−6 tests/test-files/good/PortsWithTypeAliases.elm+5−4
tests/test-files/good/AliasSubstitution.elm+2−2
@@ -1,7 +1,7 @@
11
22
3−type alias Vec2Ext a =
4− { a | x:Float, y:Float }
3+type alias Vec2Ext record =
4+ { record | x:Float, y:Float }
55
66
77type alias Vec2 =
tests/test-files/good/Ports.elm+10−6
@@ -1,17 +1,21 @@
11
22-- incoming
33input userID : String
4−input signal : Signal Int
4+input number : Int
55input tuple : (Float,Bool)
66input array : List Int
77input record : { x:Float, y:Float }
88
99-- outgoing
1010output fortyTwo : Int
11−output fortyTwo = 42
11+output fortyTwo =
12+ 42
1213
13−output time : Signal Float
14−output time = every second
1514
16−output students : Signal (List {name:String, age:Int})
17−output students = constant []
15+output time : Float
16+output time =
17+ 3.14
18+
19+output students : List { name:String, age:Int }
20+output students =
21+ [ { name = "Tom", age = 42 } ]
tests/test-files/good/PortsWithTypeAliases.elm+5−4
@@ -1,12 +1,13 @@
11
2+
23type alias Point2D =
34 Point Float Float
45
5−type alias Point a b =
6− { x:a, y:b }
6+type alias Point x y =
7+ { x:x, y:y }
78
89
9−input points : Signal Point2D
10+input points : Point2D
1011
1112
12−input pairs : Signal (Point String String)
13+input pairs : Point String String