]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Vector1.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Vector1.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Vector1.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Vector1.scl
new file mode 100644 (file)
index 0000000..33b6c86
--- /dev/null
@@ -0,0 +1,8 @@
+import "StandardLibrary"\r
+\r
+a :: Vector Double\r
+a = vector [1,2,3]\r
+\r
+main = map (a !) [0..length a-1]\r
+--\r
+[1.0, 2.0, 3.0]
\ No newline at end of file