Fix function equals test

I still don’t understand what Nix is doing behind the scenes here.
This is the original test case. Apparently it only happens with let
bindings?

Fixes #340
This commit is contained in:
Matthew Bauer 2018-08-09 16:17:11 -04:00
parent 266793a287
commit ecc8d716ef

View file

@ -313,7 +313,13 @@ case_fixed_points_attrsets =
-- constantEqualText "true" "[(x: x)] == [(x: x)]"
case_function_equals3 =
constantEqualText "false" "(x: x) == (x: x)"
constantEqualText "false" "(let a = (x: x); in a == a)"
case_function_equals4 =
constantEqualText "true" "(let a = {f = x: x;}; in a == a)"
case_function_equals5 =
constantEqualText "true" "(let a = [(x: x)]; in a == a)"
case_directory_pathexists =
constantEqualText "false" "builtins.pathExists \"/bin/sh/invalid-directory\""