about summary refs log blame commit diff
path: root/tvix/eval/src/tests/nix_tests/notyetpassing/eval-okay-context.nix
blob: 7b9531cfe9e18e38cc65c917024d51097080e43c (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