Okay, you were right, there wasn't any problem there, still there is one I don't understand that the checking program revealed:
Code:
colocantoine@ide50:~/workspace/pset2 $ check50 2015.fall.pset2.vigenere vigenere.c
:) vigenere.c exists
:) vigenere.c compiles
:) encrypts "a" as "a" using "a" as keyword
:( encrypts "world, say hello!" as "xoqmd, rby gflkp!" using "baz" as keyword
\ expected output, but not "xoqmd, szz gflkp!\n"
:) encrypts "BaRFoo" as "CaQGon" using "BaZ" as keyword
:) encrypts "BARFOO" as "CAQGON" using "BAZ" as keyword
:( handles lack of argv[1]
\ expected output, not a prompt for input
:( handles argc > 2
\ expected output, not a prompt for input
:( rejects "Hax0r2" as keyword
\ expected output, not a prompt for input
The first error I want to deal with is:
Code:
:( encrypts "world, say hello!" as "xoqmd, rby gflkp!" using "baz" as keyword
\ expected output, but not "xoqmd, szz gflkp!\n"
I don't know how to add "\n" to the encrypter without disturbing the already acquired steps above...