about summary refs log tree commit diff
path: root/tests/lang/eval-okay-string.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/eval-okay-string.nix')
-rw-r--r--tests/lang/eval-okay-string.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-string.nix b/tests/lang/eval-okay-string.nix
new file mode 100644
index 000000000000..839539e6c171
--- /dev/null
+++ b/tests/lang/eval-okay-string.nix
@@ -0,0 +1,10 @@
+"foo" + "bar"
+  + toString (/a/b + /c/d)
+  + toString (/foo/bar + "/../xyzzy/." + "/foo.txt")
+  + ("/../foo" + toString /x/y)
+  + "escape: \"quote\" \n \\"
+  + "end
+of
+line"
+  + "foo${if true then "b${"a" + "r"}" else "xyzzy"}blaat"
+  + "foo$bar"