]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Select1.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Select1.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Select1.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Select1.scl
new file mode 100644 (file)
index 0000000..f8d0359
--- /dev/null
@@ -0,0 +1,11 @@
+import "StandardLibrary"\r
+\r
+main = let\r
+    l = [1..3] \r
+  in\r
+    select (?x,?y) where \r
+        ?x <- l\r
+        ?y <- l\r
+        ?x = ?y\r
+--\r
+[(1,1), (2,2), (3,3)]
\ No newline at end of file