unitTest.cpp 507 B

123456789
  1. Describe(flip_end_chars)
  2. {
  3. It(test1){Assert::That(flipEndChars("Cat, dog, and mouse."), Equals(".at, dog, and mouseC"));}
  4. It(test2){Assert::That(flipEndChars("Anna, Banana"), Equals("anna, BananA"));}
  5. It(test3){Assert::That(flipEndChars("[]"), Equals("]["));}
  6. It(test4){Assert::That(flipEndChars(""), Equals("Incompatible."));}
  7. It(test5){Assert::That(flipEndChars("dfdkf49824fdfdfjhd"), Equals("Two's a pair."));}
  8. It(test6){Assert::That(flipEndChars("#343473847#"), Equals("Two's a pair."));}
  9. };