I successfully completed the Vigenere program and I was recently testing it with Check50. My problem is that there is only one test that fails, and I don't know why:

:( encrypts "BaRFoo" as "CaQGon" using "BaZ" as keyword 
     \ expected output, but not "CaQGoh\n"

Here is my sandbox link: https://sandbox.cs50.net/checks/58eb0850663548a7bcd378320a860169.

What's going on behind the scenes?


1 Answer 1


That check50 test is to make sure that you handle situations where the case of the key does not match the case of the text.

  • key is lower and text is upper, or
  • key is upper and text is lower

So make sure your code deals with those situations.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .