about summary refs log tree commit diff
path: root/tests/lang/eval-okay-context.nix
blob: b3f1748975f735a03b34871c4750a99128c8d2e8 (plain) (blame)
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