Sha256: 92b71570ac96ce1f9f897bf3fe056f7b990d3d6dbe70017890f1b2ebfc41b733
Contents?: true
Size: 1.87 KB
Versions: 78
Compression:
Stored size: 1.87 KB
Contents
{ "exercise": "rail-fence-cipher", "version": "1.1.0", "comments": [ "The tests do not expect any normalization or cleaning.", "That trade is tested in enough other exercises." ], "cases": [ { "description": "encode", "cases": [ { "description": "encode with two rails", "property": "encode", "input": { "msg": "XOXOXOXOXOXOXOXOXO", "rails": 2 }, "expected": "XXXXXXXXXOOOOOOOOO" }, { "description": "encode with three rails", "property": "encode", "input": { "msg": "WEAREDISCOVEREDFLEEATONCE", "rails": 3 }, "expected": "WECRLTEERDSOEEFEAOCAIVDEN" }, { "description": "encode with ending in the middle", "property": "encode", "input": { "msg": "EXERCISES", "rails": 4 }, "expected": "ESXIEECSR" } ] }, { "description": "decode", "cases": [ { "description": "decode with three rails", "property": "decode", "input": { "msg": "TEITELHDVLSNHDTISEIIEA", "rails": 3 }, "expected": "THEDEVILISINTHEDETAILS" }, { "description": "decode with five rails", "property": "decode", "input": { "msg": "EIEXMSMESAORIWSCE", "rails": 5 }, "expected": "EXERCISMISAWESOME" }, { "description": "decode with six rails", "property": "decode", "input": { "msg": "133714114238148966225439541018335470986172518171757571896261", "rails": 6 }, "expected": "112358132134558914423337761098715972584418167651094617711286" } ] } ] }
Version data entries
78 entries across 78 versions & 1 rubygems