12345678910 |
- Describe(basic_tests)
- {
- It(test1){Assert::That(calculator(2, '/', 2), Equals(1));}
- It(test2){Assert::That(calculator(10, '-', 7), Equals(3));}
- It(test3){Assert::That(calculator(2, '*', 16), Equals(32));}
- It(test4){Assert::That(calculator(2, '-', 2), Equals(0));}
- It(test5){Assert::That(calculator(15, '+', 26), Equals(41));}
- It(test6){Assert::That(calculator(2, '+', 2), Equals(4));}
- It(test7){Assert::That(calculator(2, '/', 0), Equals(0));} // Can't divide by 0!
- };
|