unitTest.cpp 1.1 KB

1234567891011121314151617181920
  1. Describe(is_even_or_odd)
  2. {
  3. It(test1){Assert::That(isEvenOrOdd(3), Equals("odd"));}
  4. It(test2){Assert::That(isEvenOrOdd(0), Equals("even"));}
  5. It(test3){Assert::That(isEvenOrOdd(7), Equals("odd"));}
  6. It(test4){Assert::That(isEvenOrOdd(12), Equals("even"));}
  7. It(test5){Assert::That(isEvenOrOdd(6474), Equals("even"));}
  8. It(test6){Assert::That(isEvenOrOdd(0563), Equals("odd"));}
  9. It(test7){Assert::That(isEvenOrOdd(3), Equals("odd"));}
  10. It(test8){Assert::That(isEvenOrOdd(0000001111100000), Equals("even"));}
  11. It(test9){Assert::That(isEvenOrOdd(301), Equals("odd"));}
  12. It(test10){Assert::That(isEvenOrOdd(-3), Equals("odd"));}
  13. It(test11){Assert::That(isEvenOrOdd(-0), Equals("even"));}
  14. It(test12){Assert::That(isEvenOrOdd(-7), Equals("odd"));}It(test13){Assert::That(isEvenOrOdd(-12), Equals("even"));}
  15. It(test14){Assert::That(isEvenOrOdd(-6474), Equals("even"));}
  16. It(test15){Assert::That(isEvenOrOdd(-0563), Equals("odd"));}
  17. It(test16){Assert::That(isEvenOrOdd(-3), Equals("odd"));}
  18. It(test17){Assert::That(isEvenOrOdd(-0000001111100000), Equals("even"));}
  19. It(test18){Assert::That(isEvenOrOdd(-301), Equals("odd"));}
  20. };