unitTest.cpp 393 B

123456789
  1. Describe(number_is_palindrome)
  2. {
  3. It(test1){Assert::That(isPalindrome(838), Equals(true));}
  4. It(test2){Assert::That(isPalindrome(77), Equals(true));}
  5. It(test3){Assert::That(isPalindrome(95159), Equals(true));}
  6. It(test4){Assert::That(isPalindrome(839), Equals(false));}
  7. It(test5){Assert::That(isPalindrome(4234), Equals(false));}
  8. It(test6){Assert::That(isPalindrome(13), Equals(false));}
  9. };