]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/RecursiveValues3.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / RecursiveValues3.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/RecursiveValues3.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/RecursiveValues3.scl
new file mode 100644 (file)
index 0000000..020a967
--- /dev/null
@@ -0,0 +1,12 @@
+data Nat = O | S Nat\r
+\r
+// It is important for this test that even and or are not annotated\r
+even O = True\r
+even (S x) = odd x\r
+\r
+odd O = False\r
+odd (S x) = even x\r
+\r
+main = even (S (S (S (S (S O)))))\r
+--\r
+false
\ No newline at end of file