From ee7fe64c0ac00f2be11604a2a6509eb86dc19f0a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 10 Jun 2014 14:02:56 +0200 Subject: == operator: Ignore string context There really is no case I can think of where taking the context into account is useful. Mostly it's just very inconvenient. --- tests/lang/eval-okay-context.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/lang') diff --git a/tests/lang/eval-okay-context.nix b/tests/lang/eval-okay-context.nix index b3f1748975f7..8cd8f2e131d8 100644 --- a/tests/lang/eval-okay-context.nix +++ b/tests/lang/eval-okay-context.nix @@ -1,6 +1,6 @@ let s = "foo ${builtins.substring 33 100 (baseNameOf ./eval-okay-context.nix)} bar"; in - if s == "foo eval-okay-context.nix bar" + if s != "foo eval-okay-context.nix bar" then abort "context not discarded" else builtins.unsafeDiscardStringContext s -- cgit 1.4.1