Skip to main content
deleted 13 characters in body; edited tags
Source Link
Air
  • 2.1k
  • 18
  • 29

I get the following when usingrunning check50 for caesar.on caesar.c:

:) caesar.c exists
:) caesar.c compiles
:) encrypts "a" as "b" using 1 as key
:( encrypts "barfoo" as "yxocll" using 23 as key
    \ expected output, but not "yx��c����\n"
:) encrypts "BARFOO" as "EDUIRR" using 3 as key
:) encrypts "BaRFoo" as "FeVJss" using 4 as key
:) encrypts "barfoo" as "onesbb" using 65 as key
:( encrypts "world, say hello!" as "iadxp, emk tqxxa!" using 12 as key
    \ expected output, but not "��adxp, em�� tqxxa!\n"
:) handles lack of argv[1]

Obviously it is the :(:( that have me confused. I believe I have the correct output format, with the first line being the program name and key, the next line the message to cipher and the last line the encrypted message with no additional text.

Thank you

I get the following when using check50 for caesar.

:) caesar.c exists
:) caesar.c compiles
:) encrypts "a" as "b" using 1 as key
:( encrypts "barfoo" as "yxocll" using 23 as key
    \ expected output, but not "yx��c����\n"
:) encrypts "BARFOO" as "EDUIRR" using 3 as key
:) encrypts "BaRFoo" as "FeVJss" using 4 as key
:) encrypts "barfoo" as "onesbb" using 65 as key
:( encrypts "world, say hello!" as "iadxp, emk tqxxa!" using 12 as key
    \ expected output, but not "��adxp, em�� tqxxa!\n"
:) handles lack of argv[1]

Obviously it is the :( that have me confused. I believe I have the correct output format, with the first line being the program name and key, the next line the message to cipher and the last line the encrypted message with no additional text.

Thank you

I get the following when running check50 on caesar.c:

:) caesar.c exists
:) caesar.c compiles
:) encrypts "a" as "b" using 1 as key
:( encrypts "barfoo" as "yxocll" using 23 as key
    \ expected output, but not "yx��c����\n"
:) encrypts "BARFOO" as "EDUIRR" using 3 as key
:) encrypts "BaRFoo" as "FeVJss" using 4 as key
:) encrypts "barfoo" as "onesbb" using 65 as key
:( encrypts "world, say hello!" as "iadxp, emk tqxxa!" using 12 as key
    \ expected output, but not "��adxp, em�� tqxxa!\n"
:) handles lack of argv[1]

Obviously it is the :( that have me confused. I believe I have the correct output format, with the first line being the program name and key, the next line the message to cipher and the last line the encrypted message with no additional text.

added 46 characters in body
Source Link
sinister
  • 3.5k
  • 2
  • 20
  • 37

I get the following when using check50 for caesar.

:) caesar.c exists :) caesar.c compiles :) encrypts "a" as "b" using 1 as key :( encrypts "barfoo" as "yxocll" using 23 as key \ expected output, but not "yx��c����\n" :) encrypts "BARFOO" as "EDUIRR" using 3 as key :) encrypts "BaRFoo" as "FeVJss" using 4 as key :) encrypts "barfoo" as "onesbb" using 65 as key :( encrypts "world, say hello!" as "iadxp, emk tqxxa!" using 12 as key \ expected output, but not "��adxp, em�� tqxxa!\n" :) handles lack of argv[1]

:) caesar.c exists
:) caesar.c compiles
:) encrypts "a" as "b" using 1 as key
:( encrypts "barfoo" as "yxocll" using 23 as key
    \ expected output, but not "yx��c����\n"
:) encrypts "BARFOO" as "EDUIRR" using 3 as key
:) encrypts "BaRFoo" as "FeVJss" using 4 as key
:) encrypts "barfoo" as "onesbb" using 65 as key
:( encrypts "world, say hello!" as "iadxp, emk tqxxa!" using 12 as key
    \ expected output, but not "��adxp, em�� tqxxa!\n"
:) handles lack of argv[1]

Obviously it is the :( that have me confused. I believe I have the correct output format, with the first line being the program name and key, the next line the message to cipher and the last line the encrypted message with no additional text.

Thank you

I get the following when using check50 for caesar.

:) caesar.c exists :) caesar.c compiles :) encrypts "a" as "b" using 1 as key :( encrypts "barfoo" as "yxocll" using 23 as key \ expected output, but not "yx��c����\n" :) encrypts "BARFOO" as "EDUIRR" using 3 as key :) encrypts "BaRFoo" as "FeVJss" using 4 as key :) encrypts "barfoo" as "onesbb" using 65 as key :( encrypts "world, say hello!" as "iadxp, emk tqxxa!" using 12 as key \ expected output, but not "��adxp, em�� tqxxa!\n" :) handles lack of argv[1]

Obviously it is the :( that have me confused. I believe I have the correct output format, with the first line being the program name and key, the next line the message to cipher and the last line the encrypted message with no additional text.

Thank you

I get the following when using check50 for caesar.

:) caesar.c exists
:) caesar.c compiles
:) encrypts "a" as "b" using 1 as key
:( encrypts "barfoo" as "yxocll" using 23 as key
    \ expected output, but not "yx��c����\n"
:) encrypts "BARFOO" as "EDUIRR" using 3 as key
:) encrypts "BaRFoo" as "FeVJss" using 4 as key
:) encrypts "barfoo" as "onesbb" using 65 as key
:( encrypts "world, say hello!" as "iadxp, emk tqxxa!" using 12 as key
    \ expected output, but not "��adxp, em�� tqxxa!\n"
:) handles lack of argv[1]

Obviously it is the :( that have me confused. I believe I have the correct output format, with the first line being the program name and key, the next line the message to cipher and the last line the encrypted message with no additional text.

Thank you

Source Link
Sara
  • 11
  • 2

check50 "Expected output, but not..." For only some checks in caesar

I get the following when using check50 for caesar.

:) caesar.c exists :) caesar.c compiles :) encrypts "a" as "b" using 1 as key :( encrypts "barfoo" as "yxocll" using 23 as key \ expected output, but not "yx��c����\n" :) encrypts "BARFOO" as "EDUIRR" using 3 as key :) encrypts "BaRFoo" as "FeVJss" using 4 as key :) encrypts "barfoo" as "onesbb" using 65 as key :( encrypts "world, say hello!" as "iadxp, emk tqxxa!" using 12 as key \ expected output, but not "��adxp, em�� tqxxa!\n" :) handles lack of argv[1]

Obviously it is the :( that have me confused. I believe I have the correct output format, with the first line being the program name and key, the next line the message to cipher and the last line the encrypted message with no additional text.

Thank you