assertFalse("Failed: " + notLike, notLike.match(match2));
}
public void testEvaluateADD() throws Exception {
Expression add = new ASTAdd(new Object[] { new Integer(1), new Double(5.5) });
assertEquals(6.5, ((Number) add.evaluate(null)).doubleValue(), 0.0001);
}
public void testEvaluateSubtract() throws Exception {
Expression subtract = new ASTSubtract(new Object[] { new Integer(1), new Double(0.1), new Double(0.2) });
assertEquals(0.7, ((Number) subtract.evaluate(null)).doubleValue(), 0.0001);