diff options
author | Taeer Bar-Yam <taeer@bar-yam.me> | 2021-08-06 07:06:52 -0400 |
---|---|---|
committer | Taeer Bar-Yam <taeer@bar-yam.me> | 2021-08-06 07:06:52 -0400 |
commit | 624162c72973b2ff63ee4e840c4f20af1e490039 (patch) | |
tree | b6063e4fa55c89877f45089d412c375c51d210cb /tests/lang/eval-okay-path-antiquotation.nix | |
parent | 8f9429dcab9e806a61a8541cd3fd7c1c19c17ae8 (diff) |
add path antiqutations test
Diffstat (limited to 'tests/lang/eval-okay-path-antiquotation.nix')
-rw-r--r-- | tests/lang/eval-okay-path-antiquotation.nix | 12 |
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"}; +} |