about summary refs log tree commit diff
path: root/tests/lang
diff options
context:
space:
mode:
authorGuillaume Maudoux <layus.on@gmail.com>2015-07-02T21·53+0200
committerGuillaume Maudoux <layus.on@gmail.com>2015-07-03T12·09+0200
commit467977f20326f704b259157652ee9b7ba2efaa78 (patch)
tree2aef3ca8cad3613e09a71cd3811164ffcab46ecf /tests/lang
parent65e4dcd69bb618ef2bf07ec128b207df3d9e868a (diff)
Fix the parsing of "$"'s in strings.
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/eval-okay-string.exp2
-rw-r--r--tests/lang/eval-okay-string.nix2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/lang/eval-okay-string.exp b/tests/lang/eval-okay-string.exp
index 6079202470e3..63f650f73a3a 100644
--- a/tests/lang/eval-okay-string.exp
+++ b/tests/lang/eval-okay-string.exp
@@ -1 +1 @@
-"foobar/a/b/c/d/foo/xyzzy/foo.txt/../foo/x/yescape: \"quote\" \n \\end\nof\nlinefoobarblaatfoo$bar"
+"foobar/a/b/c/d/foo/xyzzy/foo.txt/../foo/x/yescape: \"quote\" \n \\end\nof\nlinefoobarblaatfoo$bar$\"$\"$"
diff --git a/tests/lang/eval-okay-string.nix b/tests/lang/eval-okay-string.nix
index 839539e6c171..47cc989ad46a 100644
--- a/tests/lang/eval-okay-string.nix
+++ b/tests/lang/eval-okay-string.nix
@@ -8,3 +8,5 @@ of
 line"
   + "foo${if true then "b${"a" + "r"}" else "xyzzy"}blaat"
   + "foo$bar"
+  + "$\"$\""
+  + "$"