on master help sign in
Update tests for 0.15 port syntax
a1b6c31Evan Czaplicki
tests/test-files/good/Ports.elm+11−11
@@ -1,21 +1,21 @@
1
1
2-- incoming
2-- incoming
3−input userID : String
3+port userID : String
4−input number : Int
4+port number : Int
5−input tuple : (Float,Bool)
5+port tuple : (Float,Bool)
6−input array : List Int
6+port array : List Int
7−input record : { x:Float, y:Float }
7+port record : { x:Float, y:Float }
8
8
9-- outgoing
9-- outgoing
10−output fortyTwo : Int
10+port fortyTwo : Int
11−output fortyTwo =
11+port fortyTwo =
12 42
12 42
13
13
14
14
15−output time : Float
15+port time : Float
16−output time =
16+port time =
17 3.14
17 3.14
18
18
19−output students : List { name:String, age:Int }
19+port students : List { name:String, age:Int }
20−output students =
20+port students =
21 [ { name = "Tom", age = 42 } ]
21 [ { name = "Tom", age = 42 } ]
tests/test-files/good/PortsWithTypeAliases.elm+2−2
@@ -7,7 +7,7 @@ type alias Point x y =
7 { x:x, y:y }
7 { x:x, y:y }
8
8
9
9
10−input points : Point2D
10+port points : Point2D
11
11
12
12
13−input pairs : Point String String
13+port pairs : Point String String