Am I missing something with the JavaScript encode? It looks like there's a test for encodeRailFenceCipher('',3) that is expecting an empty string, but if I return an empty string, I get expected undefined to equal ''. Is something in the test case coercing the empty string into undefined?
No random tests
No, but you might want to check
decodeRailFenceCipher("", 3)
as well.Am I missing something with the JavaScript encode? It looks like there's a test for
encodeRailFenceCipher('',3)
that is expecting an empty string, but if I return an empty string, I getexpected undefined to equal ''
. Is something in the test case coercing the empty string into undefined?