1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-12 12:01:05 +01:00

test: add tests for function equality behavior

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
This commit is contained in:
Robert Hensing 2025-12-07 14:43:46 +01:00
parent 97a60c1fab
commit 6fb5276e7b
12 changed files with 37 additions and 0 deletions