unitTest.cpp 641 B

1234567891011
  1. Describe(letter_distance_tests)
  2. {
  3. It(test1){Assert::That(letterDistance("house", "fly"), Equals(11));}
  4. It(test2){Assert::That(letterDistance("sharp", "sharq"), Equals(1));}
  5. It(test3){Assert::That(letterDistance("abcde", "bcdef"), Equals(5));}
  6. It(test4){Assert::That(letterDistance("abcde", "a"), Equals(4));}
  7. It(test5){Assert::That(letterDistance("abcde", "e"), Equals(8));}
  8. It(test6){Assert::That(letterDistance("very", "fragile"), Equals(67));}
  9. It(tests_with_capital_letters_1){Assert::That(letterDistance("abcde", "Abcde"), Equals(32));}
  10. It(tests_with_capital_letters_2){Assert::That(letterDistance("abcde", "A"), Equals(36));}
  11. };