tvl-depot/tvix/eval/src/tests
Adam Joseph 9ada456260 fix(tvix/eval): nix_eq() must recurse
The current implementation of nix_eq will force one level of thunks
and then switch to the (non-forcing) rust Eq::eq() method.  This
gives incorrect results for lists-of-thunks.

This commit changes nix_eq() to be recursive.

A regression test (which fails prior to this commit) is included.

This fix also causes nix_tests/eval-okay-fromjson.nix to pass, so it
is moved out of notyetpassing.

Change-Id: I655fd7a5294208a7b39df8e2c3c12a8b9768292f
Signed-off-by: Adam Joseph <adam@westernsemico.com>
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7142
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-10-31 12:36:15 +00:00
..
nix_tests fix(tvix/eval): nix_eq() must recurse 2022-10-31 12:36:15 +00:00
tvix_tests fix(tvix/eval): nix_eq() must recurse 2022-10-31 12:36:15 +00:00
mod.rs feat(tvix/eval): include filename of failing test when failing 2022-10-26 10:20:01 +00:00