Sha256: 99c9b83c88242ea94233a8b613343a660a7ff4edce53c7e4dc09927123d0b1e3

Contents?: true

Size: 1.7 KB

Versions: 44

Compression:

Stored size: 1.7 KB

Contents

{
  "exercise": "rail-fence-cipher",
  "version": "1.0.0",
  "comments": [
    "The tests do not expect any normalization or cleaning.",
    "That trade is tested in enough other exercises."
  ],
  "cases": [
    {
      "description": "encode",
      "cases": [
        {
          "description": "test to encode with two rails",
          "property": "encode",
          "msg": "XOXOXOXOXOXOXOXOXO",
          "rails": 2,
          "expected": "XXXXXXXXXOOOOOOOOO"
        },
        {
          "description": "test to encode with three rails",
          "property": "encode",
          "msg": "WEAREDISCOVEREDFLEEATONCE",
          "rails": 3,
          "expected": "WECRLTEERDSOEEFEAOCAIVDEN"
        },
        {
          "description": "test to encode with ending in the middle",
          "property": "encode",
          "msg": "EXERCISES",
          "rails": 4,
          "expected": "ESXIEECSR"
        }
      ]
    },
    {
      "description": "decode",
      "cases": [
        {
          "description": "test to decode with three rails",
          "property": "decode",
          "msg": "TEITELHDVLSNHDTISEIIEA",
          "rails": 3,
          "expected": "THEDEVILISINTHEDETAILS"
        },
        {
          "description": "test to decode with five rails",
          "property": "decode",
          "msg": "EIEXMSMESAORIWSCE",
          "rails": 5,
          "expected": "EXERCISMISAWESOME"
        },
        {
          "description": "test to decode with six rails",
          "property": "decode",
          "msg": "133714114238148966225439541018335470986172518171757571896261",
          "rails": 6,
          "expected": "112358132134558914423337761098715972584418167651094617711286"
        }
      ]
    }
  ]
}

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
trackler-2.1.0.6 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.1.0.5 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.1.0.4 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.1.0.3 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.1.0.2 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.1.0.1 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.1.0.0 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.55 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.54 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.53 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.52 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.51 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.50 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.49 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.48 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.47 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.46 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.45 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.44 common/exercises/rail-fence-cipher/canonical-data.json
trackler-2.0.8.43 common/exercises/rail-fence-cipher/canonical-data.json