unitTest.cpp 443 B

12345678910
  1. Describe(has_spaces)
  2. {
  3. It(test1){Assert::That(hasSpaces("Foo"), Equals(false));}
  4. It(test2){Assert::That(hasSpaces("Foo bar"), Equals(true));}
  5. It(test3){Assert::That(hasSpaces("Foo "), Equals(true));}
  6. It(test4){Assert::That(hasSpaces(" Foo"), Equals(true));}
  7. It(test5){Assert::That(hasSpaces(" "), Equals(true));}
  8. It(test6){Assert::That(hasSpaces(""), Equals(false));}
  9. It(test7){Assert::That(hasSpaces(",./;'[]-="), Equals(false));}
  10. };