]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/StringMatching1.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / StringMatching1.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/StringMatching1.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/StringMatching1.scl
new file mode 100644 (file)
index 0000000..5865926
--- /dev/null
@@ -0,0 +1,7 @@
+main :: Integer\r
+main = match "Bar" with\r
+  "Foo" -> 1\r
+  "Bar" -> 2\r
+  _ -> 3\r
+--\r
+2
\ No newline at end of file