internal/core/adt: hoist the test body of TestEval
The body will be used for testing both the old and new
evaluator in a separate test. This prepares for that and keeps
the diff down the line.
runEvalTest is not passed as an argument to Run directly, as
it will soon have a different signature.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I170c070ce55a0ec79156fc3331f174caddde617b
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1167860
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>