Пример #1
0
  public final void testSubtractionBetweenIntegersSimplification() {
    Minus minus = new Minus();
    minus.left = new Number(5);
    minus.left.type = IntegerType.instance;
    minus.right = new Number(2);
    minus.right.type = IntegerType.instance;

    expressionSimplificationTester(minus, Number.class, IntegerType.instance, 3, true);
  }
Пример #2
0
 public final void testZeroMinusExp() {
   Minus m = new Minus();
   m.type = IntegerType.instance;
   operationWithZero(m, Minus.class, true, true);
 }
Пример #3
0
 public final void testExpMinusZero() {
   Minus m = new Minus();
   m.type = IntegerType.instance;
   operationWithZero(m, null, false, true);
 }