unitTest.cpp 847 B

123456789101112131415
  1. Describe(double_letters_test)
  2. {
  3. It(test1){Assert::That(double_letters("loop"), Equals(true)); }
  4. It(test2){Assert::That(double_letters("meeting"), Equals(true)); }
  5. It(test3){Assert::That(double_letters("yummy"), Equals(true)); }
  6. It(test4){Assert::That(double_letters("moo"), Equals(true)); }
  7. It(test5){Assert::That(double_letters("toodles"), Equals(true)); }
  8. It(test6){Assert::That(double_letters("droop"), Equals(true)); }
  9. It(test7){Assert::That(double_letters("loot"), Equals(true)); }
  10. It(test8){Assert::That(double_letters("munchkin"), Equals(false)); }
  11. It(test9){Assert::That(double_letters("forestry"), Equals(false)); }
  12. It(test10){Assert::That(double_letters("raindrops"), Equals(false)); }
  13. It(test11){Assert::That(double_letters("gold"), Equals(false)); }
  14. It(test12){Assert::That(double_letters("paradise"), Equals(false)); }
  15. };