We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4202772 commit e220de0Copy full SHA for e220de0
1 file changed
src/test/java/com/dashjoin/jsonata/ArrayTest.java
@@ -6,7 +6,6 @@
6
import static org.junit.jupiter.api.Assertions.assertEquals;
7
import java.util.Map;
8
import org.junit.jupiter.api.Assertions;
9
-import org.junit.jupiter.api.Disabled;
10
import org.junit.jupiter.api.Test;
11
12
public class ArrayTest {
@@ -20,11 +19,10 @@ public void testArray() {
20
19
assertEquals(res1, res2);
21
}
22
23
- @Disabled
24
@Test
25
public void filterTest() {
26
// Frame value not evaluated if used in array filter #45
27
- Jsonata expr = jsonata("($arr := [{'x':1}, {'x':2}];$arr[x=$number(variable.field)])");
+ Jsonata expr = jsonata("($arr := [{'x':1}, {'x':2}];$arr[x=$number($$.variable.field)])");
28
Assertions.assertNotNull(expr.evaluate(Map.of("variable", Map.of("field", "1"))));
29
30
0 commit comments