@Test public void equStringTrue() { BoolValue v = TestHelper.as(TestHelper.evaluate("\"string\"==\"string\"", null), BoolValue.class); assertNotNull(v); assertTrue(v.getValue()); }
@Test public void notEquStringFalse() { BoolValue v = TestHelper.as(TestHelper.evaluate("\"string\"!=\"string\"", null), BoolValue.class); assertNotNull(v); assertFalse(v.getValue()); }
@Test public void gtEquDecTrue() { BoolValue v = TestHelper.as(TestHelper.evaluate("1.1>=1.0", null), BoolValue.class); assertNotNull(v); assertTrue(v.getValue()); }
@Test public void ltEquIntFalse() { BoolValue v = TestHelper.as(TestHelper.evaluate("3<=1", null), BoolValue.class); assertNotNull(v); assertFalse(v.getValue()); }
@Test public void ltIntTrue() { BoolValue v = TestHelper.as(TestHelper.evaluate("1<3", null), BoolValue.class); assertNotNull(v); assertTrue(v.getValue()); }
@Test public void ltDecFalse() { BoolValue v = TestHelper.as(TestHelper.evaluate("1.0<1.0", null), BoolValue.class); assertNotNull(v); assertFalse(v.getValue()); }
@Test public void equBoolFalse() { BoolValue v = TestHelper.as(TestHelper.evaluate("true==false", null), BoolValue.class); assertNotNull(v); assertFalse(v.getValue()); }
@Test public void notEquBoolTrue() { BoolValue v = TestHelper.as(TestHelper.evaluate("true!=false", null), BoolValue.class); assertNotNull(v); assertTrue(v.getValue()); }