aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-okay-path-string-interpolation.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/lang/eval-okay-path-string-interpolation.nix')
-rw-r--r--tests/functional/lang/eval-okay-path-string-interpolation.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/functional/lang/eval-okay-path-string-interpolation.nix b/tests/functional/lang/eval-okay-path-string-interpolation.nix
new file mode 100644
index 000000000..497d7c1c7
--- /dev/null
+++ b/tests/functional/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"};
+}