Skip to content

Commit 1c51f11

Browse files
committed
Add missing useNewEvaluator in eval.
1 parent 3239399 commit 1c51f11

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sjsonnet/test/src/sjsonnet/EvaluatorTests.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ object EvaluatorTests extends TestSuite {
152152
) ==> ujson.Obj("x" -> ujson.Num(3))
153153
// Locals which reference variables from the comprehension:
154154
eval(
155-
"""{local x2 = k*2, [std.toString(k)]: x2 for k in [1]}"""
155+
"""{local x2 = k*2, [std.toString(k)]: x2 for k in [1]}""",
156+
useNewEvaluator = useNewEvaluator
156157
) ==> ujson.Obj("1" -> ujson.Num(2))
157158
// Regression test for https://github.com/databricks/sjsonnet/issues/357
158159
// self references in object comprehension locals are properly rebound during inheritance:

0 commit comments

Comments
 (0)