Add tests for function equality covering both direct comparisons and comparisons within composite types (lists and attribute sets). Tests verify: - Direct function comparisons always return false - Value identity optimization in composite types allows identical functions to compare as equal when both references point to the same function value
7 lines
150 B
Nix
7 lines
150 B
Nix
# Direct comparison of identical function returns false
|
|
# See https://nix.dev/manual/nix/latest/language/operators#equality
|
|
let
|
|
f = x: x;
|
|
in
|
|
f == f
|