aboutsummaryrefslogtreecommitdiff
path: root/tests/lang/eval-okay-context.nix
blob: 8cd8f2e131d89c6956c495a02752aa5c774f79e7 (plain)
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