Search in sources :

Example 1 with CheckInteger

use of com.dexels.navajo.functions.CheckInteger in project navajo by Dexels.

the class StandardFunctionsTest method testCheckIntegerExtended.

@Test
public void testCheckIntegerExtended() {
    CheckInteger ci = new CheckInteger();
    ci.reset();
    ci.insertStringOperand("aap");
    Object result = ci.evaluate();
    System.err.println("result = " + result);
    assertFalse((boolean) result);
    ci.reset();
    ci.insertOperand(Operand.NULL);
    result = ci.evaluate();
    System.err.println("result = " + result);
    assertFalse((boolean) result);
}
Also used : CheckInteger(com.dexels.navajo.functions.CheckInteger) Test(org.junit.Test)

Aggregations

CheckInteger (com.dexels.navajo.functions.CheckInteger)1 Test (org.junit.Test)1