8d128a4138
Add an optional postFailureMessage parameter to testEqualContents that allows users to provide additional context when tests fail. This is particularly useful for providing instructions on how to update expected results when they change intentionally. The message is displayed after the standard failure output, helping maintainers understand what to do next when a test fails.
Tests for the testers
cd nixpkgs
nix-build -A tests.testers
Tests generally derive their own correctness from simplicity, which in the case of testers (themselves functions) does not always work out. Hence the need for tests that test the testers.