Sha256: a38ee5f0ed6570f1c997f953fc5854364b0238251e1da1a0cbe6e874e5ef8463

Contents?: true

Size: 1.65 KB

Versions: 156

Compression:

Stored size: 1.65 KB

Contents

{
  "exercise": "rail-fence-cipher",
  "version": "1.0.1",
  "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",
          "msg": "XOXOXOXOXOXOXOXOXO",
          "rails": 2,
          "expected": "XXXXXXXXXOOOOOOOOO"
        },
        {
          "description": "encode with three rails",
          "property": "encode",
          "msg": "WEAREDISCOVEREDFLEEATONCE",
          "rails": 3,
          "expected": "WECRLTEERDSOEEFEAOCAIVDEN"
        },
        {
          "description": "encode with ending in the middle",
          "property": "encode",
          "msg": "EXERCISES",
          "rails": 4,
          "expected": "ESXIEECSR"
        }
      ]
    },
    {
      "description": "decode",
      "cases": [
        {
          "description": "decode with three rails",
          "property": "decode",
          "msg": "TEITELHDVLSNHDTISEIIEA",
          "rails": 3,
          "expected": "THEDEVILISINTHEDETAILS"
        },
        {
          "description": "decode with five rails",
          "property": "decode",
          "msg": "EIEXMSMESAORIWSCE",
          "rails": 5,
          "expected": "EXERCISMISAWESOME"
        },
        {
          "description": "decode with six rails",
          "property": "decode",
          "msg": "133714114238148966225439541018335470986172518171757571896261",
          "rails": 6,
          "expected": "112358132134558914423337761098715972584418167651094617711286"
        }
      ]
    }
  ]
}

Version data entries

156 entries across 156 versions & 1 rubygems

Version Path
trackler-2.2.1.80 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.79 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.78 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.77 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.76 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.75 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.74 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.73 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.72 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.71 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.70 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.69 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.68 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.67 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.66 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.65 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.64 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.63 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.62 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.61 problem-specifications/exercises/rail-fence-cipher/canonical-data.json