unitTest.cpp 461 B

123456789
  1. Describe(tests)
  2. {
  3. It(test1){Assert::That(firstNVowels("sharpening skills", 3), Equals("aei"));}
  4. It(test2){Assert::That(firstNVowels("major league", 5), Equals("aoeau"));}
  5. It(test3){Assert::That(firstNVowels("crabby patty", 2), Equals("aa"));}
  6. It(test4){Assert::That(firstNVowels("shrimp", 1), Equals("i"));}
  7. It(test5){Assert::That(firstNVowels("shrimpy", 2), Equals("invalid"));}
  8. It(test6){Assert::That(firstNVowels("hostess", 5), Equals("invalid"));}
  9. };