]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Tuples.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Tuples.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Tuples.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Tuples.scl
new file mode 100644 (file)
index 0000000..5f70e4b
--- /dev/null
@@ -0,0 +1,18 @@
+id0 () = ()\r
+\r
+id0A :: () -> ()\r
+id0A () = ()\r
+\r
+id2 (a,b) = (a,b)\r
+\r
+id2A :: (a,b) -> (a,b)\r
+id2A (a,b) = (a,b)\r
+\r
+id3 (a,b,c) = (a,b,c)\r
+\r
+id3A :: (a,b,c) -> (a,b,c)\r
+id3A (a,b,c) = (a,b,c)\r
+\r
+main = id3 (1 :: Integer,id0 (),3 :: Integer)\r
+--\r
+(1,(),3)
\ No newline at end of file