evaluator: regression test for order independent eval fixed in evalv3
The old evaluator does not correctly handle declarations in a different
order, despite CUE being order independent.
The new evaluator correctly handles this situation.
Add a regression test to lock in the behaviour of the new evaluator.
Fixes #3376
Signed-off-by: Paul Jolly <paul@myitcv.io>
Change-Id: I1c020846663e265b6c244eabd1d678650e8f1fe2
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199680
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>