aboutsummaryrefslogtreecommitdiff
path: root/tests/lang/eval-okay-path-string-interpolation.nix
diff options
context:
space:
mode:
authorBen Radford <benradf@users.noreply.github.com>2023-07-11 09:38:34 +0100
committerBen Radford <benradf@users.noreply.github.com>2023-07-11 09:38:34 +0100
commit25b20b4ad23d05d9a1e9daf105d33b7b68e4435b (patch)
tree18a5255ce272403ccfd34ab0aaad7135aed50a02 /tests/lang/eval-okay-path-string-interpolation.nix
parent754ced4a3f6d3d8865ba78a2e503776d7bd6c04f (diff)
parent4a880c3cc085841a1537040405bc142fefffd7ff (diff)
Merge remote-tracking branch 'origin/master' into best-effort-supplementary-groups
Diffstat (limited to 'tests/lang/eval-okay-path-string-interpolation.nix')
-rw-r--r--tests/lang/eval-okay-path-string-interpolation.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-path-string-interpolation.nix b/tests/lang/eval-okay-path-string-interpolation.nix
new file mode 100644
index 000000000..497d7c1c7
--- /dev/null
+++ b/tests/lang/eval-okay-path-string-interpolation.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"};
+}