]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/MarketModel2.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / MarketModel2.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/MarketModel2.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/MarketModel2.scl
new file mode 100644 (file)
index 0000000..bcd576b
--- /dev/null
@@ -0,0 +1,12 @@
+import "IterN"\r
+import "Random"\r
+\r
+foo :: Integer -> <Proc> Double\r
+foo n = runRandom $ foldlN addRandom 0.0 n\r
+\r
+addRandom :: Double -> Integer -> <Random,Proc> Double\r
+addRandom v i = v + randomDouble\r
+\r
+main = "Foo"\r
+--\r
+Foo
\ No newline at end of file