aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTaeer Bar-Yam <taeer@bar-yam.me>2021-08-06 07:06:52 -0400
committerTaeer Bar-Yam <taeer@bar-yam.me>2021-08-06 07:06:52 -0400
commit624162c72973b2ff63ee4e840c4f20af1e490039 (patch)
treeb6063e4fa55c89877f45089d412c375c51d210cb /tests
parent8f9429dcab9e806a61a8541cd3fd7c1c19c17ae8 (diff)
add path antiqutations test
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/eval-okay-path-antiquotation.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-path-antiquotation.nix b/tests/lang/eval-okay-path-antiquotation.nix
new file mode 100644
index 000000000..497d7c1c7
--- /dev/null
+++ b/tests/lang/eval-okay-path-antiquotation.nix
@@ -0,0 +1,12 @@
+let
+ foo = "foo";
+in
+{
+ simple = ./${foo};
+ surrounded = ./a-${foo}-b;
+ absolute = /${foo};
+ expr = ./${foo + "/bar"};
+ home = ~/${foo};
+ notfirst = ./bar/${foo};
+ slashes = /${foo}/${"bar"};
+}