From 624162c72973b2ff63ee4e840c4f20af1e490039 Mon Sep 17 00:00:00 2001 From: Taeer Bar-Yam Date: Fri, 6 Aug 2021 07:06:52 -0400 Subject: [PATCH] add path antiqutations test --- tests/lang/eval-okay-path-antiquotation.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/lang/eval-okay-path-antiquotation.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"}; +}