unitTest.cpp 629 B

1234567
  1. Describe(basic_tests)
  2. {
  3. It(test1){Assert::That(atbash("abcdefghijklmnopqrstuvwxyz"), Equals("zyxwvutsrqponmlkjihgfedcba"));}
  4. It(test2){Assert::That(atbash("ABCDEFGHIJKLMNOPQRSTUVWXYZ"), Equals("ZYXWVUTSRQPONMLKJIHGFEDCBA"));}
  5. It(test3){Assert::That(atbash("The word 'atbash' derives from the the first and last 2 letters of the Hebrew alphabet."), Equals("Gsv dliw 'zgyzhs' wvirevh uiln gsv gsv urihg zmw ozhg 2 ovggvih lu gsv Svyivd zokszyvg."));}
  6. It(test4){Assert::That(atbash("Vmxibkgrlm zmw wvxibkgrlm ziv rwvmgrxzo uli gsv Zgyzhs xrksvi."), Equals("Encryption and decryption are identical for the Atbash cipher."));}
  7. };