File tree Expand file tree Collapse file tree
src/test/java/com/dashjoin/jsonata Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import java .util .Date ;
77import java .util .Map ;
88import org .junit .jupiter .api .Assertions ;
9+ import org .junit .jupiter .api .Disabled ;
910import org .junit .jupiter .api .Test ;
1011import com .fasterxml .jackson .databind .ObjectMapper ;
1112
1213public class TypesTest {
1314
15+ // https://github.com/dashjoin/jsonata-java/issues/63
16+ @ Disabled
17+ @ Test
18+ public void castTestIn () {
19+ Assertions .assertFalse ((boolean )jsonata ("3 in $" ).evaluate (Arrays .asList (1.0 , 2.0 )));
20+ Assertions .assertTrue ((boolean )jsonata ("1 in $" ).evaluate (Arrays .asList (1.0 , 2.0 )));
21+ }
22+
23+ @ Test
24+ public void castTestEquals () {
25+ Assertions .assertTrue ((boolean )jsonata ("1 = $" ).evaluate (1.0 ));
26+ Assertions .assertFalse ((boolean )jsonata ("1 = $" ).evaluate (2.0 ));
27+ }
28+
1429 @ Test
1530 public void testIllegalTypes () {
1631 // array
You can’t perform that action at this time.
0 commit comments