unitTest.cpp 499 B

12345678910
  1. Describe(divisible_by_hundred)
  2. {
  3. It(test1){Assert::That(divisibleByHundred(1), Equals(false));}
  4. It(test2){Assert::That(divisibleByHundred(100), Equals(true));}
  5. It(test3){Assert::That(divisibleByHundred(1000), Equals(true));}
  6. It(test4){Assert::That(divisibleByHundred(111000), Equals(true));}
  7. It(test5){Assert::That(divisibleByHundred(-1), Equals(false));}
  8. It(test6){Assert::That(divisibleByHundred(0), Equals(true));}
  9. It(test7){Assert::That(divisibleByHundred(-100), Equals(true));}
  10. };