I'm stuck on an issue with my code. After completing my code and making sure it works as should, I run check50 and this is what I get;
jharvard@appliance (~/Dropbox/pset2): check50 2014/x/pset2/vigenere vigenere.c
:) vigenere.c exists
:) vigenere.c compiles
:( encrypts "a" as "a" using "a" as keyword
\ expected output, but not "a"
:( encrypts "world, say hello!" as "xoqmd, rby gflkp!" using "baz" as keyword
\ expected output, but not "xoqmd, rby gflkp!"
:( encrypts "BaRFoo" as "CaQGon" using "BaZ" as keyword
\ expected output, but not "CaQGon"
:( encrypts "BARFOO" as "CAQGON" using "BAZ" as keyword
\ expected output, but not "CAQGON"
:) handles lack of argv[1]
:) handles argc > 2
:) rejects "Hax0r2" as keyword
https://sandbox.cs50.net/checks/50928904a6124b57a206e0a4c9291325
Can someone tell me why check50 is not receiving the correct output? I've been stuck on this for a while and could use some help. As you can see, the program does what it should. Anything would be helpful, thanks.
A
anda
as 0,B
andb
as 1, … , andZ
andz
as 25." So there's no difference between the keywordsBaZ
andBAZ
.