Skip to content

Commit 3a92c2b

Browse files
committed
Frame value not evaluated if used in array filter #45
1 parent 071dabf commit 3a92c2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/com/dashjoin/jsonata/ArrayTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public void testArray() {
2323
@Disabled
2424
@Test
2525
public void filterTest() {
26+
// Frame value not evaluated if used in array filter #45
2627
Jsonata expr = jsonata("($arr := [{'x':1}, {'x':2}];$arr[x=$number(variable.field)])");
2728
Assertions.assertNotNull(expr.evaluate(Map.of("variable", Map.of("field", "1"))));
2829
}

0 commit comments

Comments
 (0)