File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/test/java/com/dashjoin/jsonata Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 66import static org .junit .jupiter .api .Assertions .assertEquals ;
77import java .util .Map ;
88import org .junit .jupiter .api .Assertions ;
9- import org .junit .jupiter .api .Disabled ;
109import org .junit .jupiter .api .Test ;
1110
1211public class ArrayTest {
@@ -20,11 +19,10 @@ public void testArray() {
2019 assertEquals (res1 , res2 );
2120 }
2221
23- @ Disabled
2422 @ Test
2523 public void filterTest () {
2624 // Frame value not evaluated if used in array filter #45
27- Jsonata expr = jsonata ("($arr := [{'x':1}, {'x':2}];$arr[x=$number(variable.field)])" );
25+ Jsonata expr = jsonata ("($arr := [{'x':1}, {'x':2}];$arr[x=$number($$. variable.field)])" );
2826 Assertions .assertNotNull (expr .evaluate (Map .of ("variable" , Map .of ("field" , "1" ))));
2927 }
3028}
You can’t perform that action at this time.
0 commit comments