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

Version Path
trackler-2.2.1.180 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.179 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.178 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.177 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.176 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.175 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.174 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.173 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.172 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.171 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.170 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.169 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.167 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.166 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.165 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.164 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.163 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.162 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.161 problem-specifications/exercises/rail-fence-cipher/canonical-data.json
trackler-2.2.1.160 problem-specifications/exercises/rail-fence-cipher/canonical-data.json