Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 1 addition & 30 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.1.0",
"version": "1.2.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 @@ -114,35 +114,6 @@
"expected": "iboaqcnecbfcr"
}
]
},
{
"description": "Incorrect key cipher",
"cases": [
{
"description": "Throws an error with an all uppercase key",
"property": "new",
"input": {
"key": "ABCDEF"
},
"expected": { "error": "Bad key" }
},
{
"description": "Throws an error with a numeric key",
"property": "new",
"input": {
"key": "12345"
},
"expected": { "error": "Bad key" }
},
{
"description": "Throws an error with empty key",
"property": "new",
"input": {
"key": ""
},
"expected": { "error": "Bad key" }
}
]
}
]
}
5 changes: 1 addition & 4 deletions exercises/simple-cipher/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ substitution cipher a little more fault tolerant by providing a source
of randomness and ensuring that the key contains only lowercase letters.

If someone doesn't submit a key at all, generate a truly random key of
at least 100 characters in length.

If the key submitted is not composed only of lowercase letters, your
solution should handle the error in a language-appropriate way.
at least 100 alphanumeric characters in length.

## Extensions

Expand Down