unitTest.cpp 826 B

12345678910
  1. Describe(remove_special_characters)
  2. {
  3. It(test1){Assert::That(removeSpecialCharacters("The quick brown fox!"), Equals("The quick brown fox"));}
  4. It(test2){Assert::That(removeSpecialCharacters("%fd76$fd(-)6GvKlO."), Equals("fd76fd-6GvKlO"));}
  5. It(test3){Assert::That(removeSpecialCharacters("D0n$c sed 0di0 du1"), Equals("D0nc sed 0di0 du1"));}
  6. It(test4){Assert::That(removeSpecialCharacters("cat_pic.jpeg"), Equals("cat_picjpeg"));}
  7. It(test5){Assert::That(removeSpecialCharacters("519-555-8093"), Equals("519-555-8093"));}
  8. It(test6){Assert::That(removeSpecialCharacters("h-d+=rf[]_{}<>.,`~!@#$%^&*(|)"), Equals("h-drf_"));}
  9. It(test7){Assert::That(removeSpecialCharacters("Etiam#!!!!!,,, [`po%rta ~sem!] {male*su-ada} (ma*gna) mo^llis... eui$smod???"), Equals("Etiam porta sem malesu-ada magna mollis euismod"));}
  10. };