Skip to content

Commit

Permalink
Merge pull request #1460 from paparomeo/simple-cipher-test-decode-mes…
Browse files Browse the repository at this point in the history
…sage-longer-than-key

simple-cipher: test that messages longer than the key can be decoded
  • Loading branch information
rpottsoh authored Feb 14, 2019
2 parents 34b55d1 + d91b3cc commit ed2fecd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions exercises/simple-cipher/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"exercise": "simple-cipher",
"version": "1.2.0",
"version": "1.3.0",
"comments":
["Some of the strings used in this file are symbolic and do not represent their literal value. They are:",
"cipher.key - Represents the Cipher key",
Expand Down Expand Up @@ -105,13 +105,22 @@
"expected": "zzzzzzzzzz"
},
{
"description": "Can handle messages longer than the key",
"description": "Can encode messages longer than the key",
"property": "encode",
"input": {
"key": "abc",
"plaintext": "iamapandabear"
},
"expected": "iboaqcnecbfcr"
},
{
"description": "Can decode messages longer than the key",
"property": "decode",
"input": {
"key": "abc",
"plaintext": "iboaqcnecbfcr"
},
"expected": "iamapandabear"
}
]
}
Expand Down

0 comments on commit ed2fecd

Please sign in to comment.