diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-09-01 12:55:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 12:55:04 +0200 |
commit | 7ee639f9db987a442fdf3820d3681a77b2ee1688 (patch) | |
tree | b695e169dee1cffcb968cae0ce433eb73679309a /tests | |
parent | 5045f2b792df7d2e78136dff60485a1dc9597ef7 (diff) | |
parent | 1ffb9f197075975a00cd95cddcb39a29b15aed86 (diff) |
Merge pull request #5066 from Radvendii/master
add antiquotations to paths
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/eval-fail-nonexist-path.nix (renamed from tests/lang/eval-fail-antiquoted-path.nix) | 0 | ||||
-rw-r--r-- | tests/lang/eval-okay-path-antiquotation.nix | 12 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/lang/eval-fail-antiquoted-path.nix b/tests/lang/eval-fail-nonexist-path.nix index f2f08107b..f2f08107b 100644 --- a/tests/lang/eval-fail-antiquoted-path.nix +++ b/tests/lang/eval-fail-nonexist-path.nix 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"}; +} |