Assert.assertEquals(new DecimalEvaluator("1"), parser("+++++++1").unary().e);
}
@Test
public void testMult() throws Exception {
Assert.assertEquals(new MultiplyEvaluator(new DecimalEvaluator("1"), new DecimalEvaluator("2")),
parser("1*2").mult().e);
Assert.assertEquals(new DivideEvaluator(new DecimalEvaluator("1"), new DecimalEvaluator("2")),
parser("1/2").mult().e);
Assert.assertEquals(new DivideEvaluator(new NegationEvaluator(new DecimalEvaluator("1")), new DecimalEvaluator("2")),
parser("-1 / 2").mult().e);
Assert.assertEquals(new MultiplyEvaluator(new MultiplyEvaluator(
new DecimalEvaluator("1"), new DecimalEvaluator("2")), new DecimalEvaluator("3")),
parser("1*2*3").mult().e);
Assert.assertEquals(new DivideEvaluator(
new NegationEvaluator(new DecimalEvaluator("1")),