diff options
Diffstat (limited to 'test/testdata/eval-okay-context.nix')
-rw-r--r-- | test/testdata/eval-okay-context.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-context.nix b/test/testdata/eval-okay-context.nix new file mode 100644 index 0000000..7b9531c --- /dev/null +++ b/test/testdata/eval-okay-context.nix | |||
@@ -0,0 +1,6 @@ | |||
1 | let s = "foo ${builtins.substring 33 100 (baseNameOf "${./eval-okay-context.nix}")} bar"; | ||
2 | in | ||
3 | if s != "foo eval-okay-context.nix bar" | ||
4 | then abort "context not discarded" | ||
5 | else builtins.unsafeDiscardStringContext s | ||
6 | |||