}
public void testPrecedenceNAssoc() throws Exception
{
log.trace("parse(4 + 2 * 3 / 2 = 7)");
Operator result = (Operator) parser.parse("4 + 2 * 3 / 2 = 7", identifierMap);
log.trace("result -> "+result);
Boolean b = (Boolean) result.apply();
assertTrue("is true", b.booleanValue());
log.trace("parse(4 + ((2 * 3) / 2) = 7)");
result = (Operator) parser.parse("4 + ((2 * 3) / 2) = 7", identifierMap);
log.trace("result -> "+result);
b = (Boolean) result.apply();
assertTrue("is true", b.booleanValue());
log.trace("parse(4 * -2 / -1 - 4 = 4)");
result = (Operator) parser.parse("4 * -2 / -1 - 4 = 4", identifierMap);
log.trace("result -> "+result);
b = (Boolean) result.apply();
assertTrue("is true", b.booleanValue());
log.trace("parse(4 * ((-2 / -1) - 4) = -8)");
result = (Operator) parser.parse("4 * ((-2 / -1) - 4) = -8", identifierMap);
log.trace("result -> "+result);
b = (Boolean) result.apply();
assertTrue("is true", b.booleanValue());
}