diff --git a/src/test/java/com/dashjoin/jsonata/ArrayTest.java b/src/test/java/com/dashjoin/jsonata/ArrayTest.java index 7789891..e5b1264 100644 --- a/src/test/java/com/dashjoin/jsonata/ArrayTest.java +++ b/src/test/java/com/dashjoin/jsonata/ArrayTest.java @@ -4,6 +4,9 @@ import static java.util.Arrays.asList; import static java.util.Map.of; import static org.junit.jupiter.api.Assertions.assertEquals; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; public class ArrayTest { @@ -16,4 +19,11 @@ public void testArray() { var res2 = expr2.evaluate(of("key", asList(of("x", "y"), of("a", "b")))); assertEquals(res1, res2); } + + @Disabled + @Test + public void filterTest() { + Jsonata expr = jsonata("($arr := [{'x':1}, {'x':2}];$arr[x=$number(variable.field)])"); + Assertions.assertNotNull(expr.evaluate(Map.of("variable", Map.of("field", "1")))); + } }