mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
assert: Report why values aren't equal
This commit is contained in:
parent
509be0e77a
commit
d63bd8295e
29 changed files with 532 additions and 5 deletions
|
@ -0,0 +1,9 @@
|
|||
error:
|
||||
… while evaluating the condition of the assertion '((x: x) == (x: x))'
|
||||
at /pwd/lang/eval-fail-assert-equal-function-direct.nix:3:1:
|
||||
2| # This only compares a direct comparison and makes no claims about functions in nested structures.
|
||||
3| assert
|
||||
| ^
|
||||
4| (x: x)
|
||||
|
||||
error: distinct functions and immediate comparisons of identical functions compare as unequal
|
Loading…
Add table
Add a link
Reference in a new issue