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.100 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.99 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.98 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.97 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.96 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.95 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.94 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.93 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.92 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.91 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.90 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.89 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.88 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.87 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.86 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.85 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.84 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.83 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.82 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.81 problem-specifications/exercises/rail-fence-cipher/canonical-data.json