diff options
Diffstat (limited to 'test/testdata/eval-okay-path-string-interpolation.nix')
-rw-r--r-- | test/testdata/eval-okay-path-string-interpolation.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-path-string-interpolation.nix b/test/testdata/eval-okay-path-string-interpolation.nix new file mode 100644 index 0000000..497d7c1 --- /dev/null +++ b/test/testdata/eval-okay-path-string-interpolation.nix | |||
@@ -0,0 +1,12 @@ | |||
1 | let | ||
2 | foo = "foo"; | ||
3 | in | ||
4 | { | ||
5 | simple = ./${foo}; | ||
6 | surrounded = ./a-${foo}-b; | ||
7 | absolute = /${foo}; | ||
8 | expr = ./${foo + "/bar"}; | ||
9 | home = ~/${foo}; | ||
10 | notfirst = ./bar/${foo}; | ||
11 | slashes = /${foo}/${"bar"}; | ||
12 | } | ||