]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/StringInterpolation1.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / StringInterpolation1.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/StringInterpolation1.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/StringInterpolation1.scl
new file mode 100644 (file)
index 0000000..eabad78
--- /dev/null
@@ -0,0 +1,9 @@
+import "Prelude"\r
+\r
+f x = x + 1\r
+\r
+g a b = """\(a) + \(b) = \(a+b)"""\r
+\r
+main = "f 3 = \(f 3), " + g 1 2\r
+--\r
+f 3 = 4, 1 + 2 = 3
\ No newline at end of file