Skip to content

Commit

Permalink
Frame value not evaluated if used in array filter #45
Browse files Browse the repository at this point in the history
  • Loading branch information
aeberhart committed Jun 19, 2024
1 parent 071dabf commit 3a92c2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/java/com/dashjoin/jsonata/ArrayTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public void testArray() {
@Disabled
@Test
public void filterTest() {
// Frame value not evaluated if used in array filter #45
Jsonata expr = jsonata("($arr := [{'x':1}, {'x':2}];$arr[x=$number(variable.field)])");
Assertions.assertNotNull(expr.evaluate(Map.of("variable", Map.of("field", "1"))));
}
Expand Down

0 comments on commit 3a92c2b

Please sign in to comment.