ValueMap values = new ValueMap();
values.put("val1", new BigDecimal(5));
values.put("val2", new BigDecimal(10));
Parser p = new Parser("val1+val2");
BigDecimal value = p.eval(p.lexicalVerifier(), values);
assertEquals(value.compareTo(new BigDecimal("15")), 0);
}
@Test
public void testMinus() throws LexicalException, Exception {