on master help sign in
Add a test for port parsing and types

Partly addressing #442

commit3640376be8cbb78c70765e1baf7d0e7de2ce407c authorEvan Czaplicki <info@elm-lang.org> dateSat 18 Jan 2014, 00:46 (13 years ago) parent6984bbf
1 file changed+17
tests/test-files/good/Ports.elm+17
tests/test-files/good/Ports.elmnew file+17
@@ -0,0 +1,17 @@
1+
2+-- incoming
3+port userID : String
4+port signal : Signal Int
5+port tuple : (Float,Bool)
6+port array : [Int]
7+port record : { x:Float, y:Float }
8+
9+-- outgoing
10+port fortyTwo : Int
11+port fortyTwo = 42
12+
13+port time : Signal Float
14+port time = every second
15+
16+port students : Signal [{name:String, age:Int}]
17+port students = constant []