summaryrefslogtreecommitdiff
path: root/tests/examplefiles/interp.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examplefiles/interp.scala')
-rw-r--r--tests/examplefiles/interp.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/examplefiles/interp.scala b/tests/examplefiles/interp.scala
new file mode 100644
index 00000000..4131b75e
--- /dev/null
+++ b/tests/examplefiles/interp.scala
@@ -0,0 +1,10 @@
+val n = 123;
+val a = s"n=$n";
+val a2 = s"n=$n''";
+val b = s"""n=$n""";
+val c = f"n=$n%f";
+val d = f"""n=$n%f""";
+val d2 = s"""a"""";
+val e = s"abc\u00e9";
+val f = s"a${n}b";
+val g = s"a${n + 1}b";