Package org.yaac.server.egql.evaluator

Examples of org.yaac.server.egql.evaluator.SubtractEvaluator


  @Test
  public void testExpression() throws Exception {
    Assert.assertEquals(new AddEvaluator(new DecimalEvaluator("1"), new DecimalEvaluator("2")),
        parser("1+2").expression().e);
   
    Assert.assertEquals(new SubtractEvaluator(new DecimalEvaluator("1"), new DecimalEvaluator("2")),
        parser("1-2").expression().e);
   
    Assert.assertEquals(new SubtractEvaluator(
        new MultiplyEvaluator(new DecimalEvaluator("1"), new DecimalEvaluator("2")),
        new DecimalEvaluator("2")),
        parser("1*2-2").expression().e);
   
    Assert.assertEquals(new AddEvaluator(
View Full Code Here

TOP

Related Classes of org.yaac.server.egql.evaluator.SubtractEvaluator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.