about summary refs log blame commit diff
path: root/tvix/glue/src/tests/nix_tests/eval-okay-context.nix
blob: c8732118628a29bfa86ba03164d9f0a20c1f643e (plain) (tree)
1
2
3
4
5
6





                                                                                         
let s = "foo ${builtins.substring 33 100 (baseNameOf "${./eval-okay-context.nix}")} bar";
in
if s != "foo eval-okay-context.nix bar"
then abort "context not discarded"
else builtins.unsafeDiscardStringContext s