Skip to main content

Timeline for Caesar cipher implementation in C++

Current License: CC BY-SA 4.0

4 events
when toggle format what by license comment
Nov 14, 2019 at 7:33 comment added Patrick Stevens Property-based tests are even more your friend! Just test that encode(str, a + b) = encode(encode(str, b), a) whenever 0 <= a,b < 26, and that encode(str, 26) = str, and you're 7/8 of the way to knowing that you're correct without even looking at any code.
Nov 13, 2019 at 15:01 comment added AJNeufeld "The Quick Brown Fox Jumped Over The Lazy Dog" is your friend. :-). Add a test case encoding, and subsequently decoding it, and verifying the original string is returned.
Nov 13, 2019 at 14:56 comment added Exzlanttt Yea that is from an earlier version without the flag forgot to delete that part and didn't test for strings with a 'Z'! Thank you for spotting it
Nov 13, 2019 at 14:53 history answered AJNeufeld CC BY-SA 4.0