{ "exercise": "rotational-cipher", "version": "1.2.0", "comments": [ "The tests are a series of rotation tests: " ], "cases": [ { "description": "Test rotation from English to ROTn", "cases": [ { "description": "rotate a by 0, same output as input", "property": "rotate", "input": { "text": "a", "shiftKey": 0 }, "expected": "a" }, { "description": "rotate a by 1", "property": "rotate", "input": { "text": "a", "shiftKey": 1 }, "expected": "b" }, { "description": "rotate a by 26, same output as input", "property": "rotate", "input": { "text": "a", "shiftKey": 26 }, "expected": "a" }, { "description": "rotate m by 13", "property": "rotate", "input": { "text": "m", "shiftKey": 13 }, "expected": "z" }, { "description": "rotate n by 13 with wrap around alphabet", "property": "rotate", "input": { "text": "n", "shiftKey": 13 }, "expected": "a" }, { "description": "rotate capital letters", "property": "rotate", "input": { "text": "OMG", "shiftKey": 5 }, "expected": "TRL" }, { "description": "rotate spaces", "property": "rotate", "input": { "text": "O M G", "shiftKey": 5 }, "expected": "T R L" }, { "description": "rotate numbers", "property": "rotate", "input": { "text": "Testing 1 2 3 testing", "shiftKey": 4 }, "expected": "Xiwxmrk 1 2 3 xiwxmrk" }, { "description": "rotate punctuation", "property": "rotate", "input": { "text": "Let's eat, Grandma!", "shiftKey": 21 }, "expected": "Gzo'n zvo, Bmviyhv!" }, { "description": "rotate all letters", "property": "rotate", "input": { "text": "The quick brown fox jumps over the lazy dog.", "shiftKey": 13 }, "expected": "Gur dhvpx oebja sbk whzcf bire gur ynml qbt." } ] } ] }