Update tests for 0.15 port syntax
commita1b6c31c98773d4dee81431693975a1c451c17d8
authorEvan Czaplicki <info@elm-lang.org>
dateThu 21 May 2015, 05:58 (11 years ago)
parent37e4dfe
tests/test-files/good/Ports.elm+11−11
@@ -1,21 +1,21 @@
11
22-- incoming
3−input userID : String
4−input number : Int
5−input tuple : (Float,Bool)
6−input array : List Int
7−input record : { x:Float, y:Float }
3+port userID : String
4+port number : Int
5+port tuple : (Float,Bool)
6+port array : List Int
7+port record : { x:Float, y:Float }
88
99-- outgoing
10−output fortyTwo : Int
11−output fortyTwo =
10+port fortyTwo : Int
11+port fortyTwo =
1212 42
1313
1414
15−output time : Float
16−output time =
15+port time : Float
16+port time =
1717 3.14
1818
19−output students : List { name:String, age:Int }
20−output students =
19+port students : List { name:String, age:Int }
20+port students =
2121 [ { name = "Tom", age = 42 } ]
tests/test-files/good/PortsWithTypeAliases.elm+2−2
@@ -7,7 +7,7 @@ type alias Point x y =
77 { x:x, y:y }
88
99
10−input points : Point2D
10+port points : Point2D
1111
1212
13−input pairs : Point String String
13+port pairs : Point String String