Example #1
0
  @Test
  public void test_CheckForBinaryOp_2() {
    List<Integer> list1 = new ArrayList<Integer>();
    list1.add(4);
    list1.add(2);
    list1.add(8);

    CheckForBinaryOp chk1 = new CheckForBinaryOp(list1);

    assertTrue(chk1.isBinaryOpMultiplication());
  }
Example #2
0
  @Test
  public void test_CheckForBinaryOp_1() {
    List<Integer> list1 = new ArrayList<Integer>();
    list1.add(4);
    list1.add(5);
    list1.add(9);
    List<Integer> list2 = new ArrayList<Integer>();
    list2.add(10);
    list2.add(20);
    list2.add(30);

    CheckForBinaryOp chk1 = new CheckForBinaryOp(list1);
    CheckForBinaryOp chk2 = new CheckForBinaryOp(list2);

    assertTrue(chk1.isBinaryOpAddition() && chk2.isBinaryOpAddition());
  }