/
canonical-data.json
106 lines (106 loc) · 2.57 KB
/
canonical-data.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"exercise": "rotational-cipher",
"comments": ["The tests are a series of rotation tests: "],
"cases": [
{
"uuid": "74e58a38-e484-43f1-9466-877a7515e10f",
"description": "rotate a by 0, same output as input",
"property": "rotate",
"input": {
"text": "a",
"shiftKey": 0
},
"expected": "a"
},
{
"uuid": "7ee352c6-e6b0-4930-b903-d09943ecb8f5",
"description": "rotate a by 1",
"property": "rotate",
"input": {
"text": "a",
"shiftKey": 1
},
"expected": "b"
},
{
"uuid": "edf0a733-4231-4594-a5ee-46a4009ad764",
"description": "rotate a by 26, same output as input",
"property": "rotate",
"input": {
"text": "a",
"shiftKey": 26
},
"expected": "a"
},
{
"uuid": "e3e82cb9-2a5b-403f-9931-e43213879300",
"description": "rotate m by 13",
"property": "rotate",
"input": {
"text": "m",
"shiftKey": 13
},
"expected": "z"
},
{
"uuid": "19f9eb78-e2ad-4da4-8fe3-9291d47c1709",
"description": "rotate n by 13 with wrap around alphabet",
"property": "rotate",
"input": {
"text": "n",
"shiftKey": 13
},
"expected": "a"
},
{
"uuid": "a116aef4-225b-4da9-884f-e8023ca6408a",
"description": "rotate capital letters",
"property": "rotate",
"input": {
"text": "OMG",
"shiftKey": 5
},
"expected": "TRL"
},
{
"uuid": "71b541bb-819c-4dc6-a9c3-132ef9bb737b",
"description": "rotate spaces",
"property": "rotate",
"input": {
"text": "O M G",
"shiftKey": 5
},
"expected": "T R L"
},
{
"uuid": "ef32601d-e9ef-4b29-b2b5-8971392282e6",
"description": "rotate numbers",
"property": "rotate",
"input": {
"text": "Testing 1 2 3 testing",
"shiftKey": 4
},
"expected": "Xiwxmrk 1 2 3 xiwxmrk"
},
{
"uuid": "32dd74f6-db2b-41a6-b02c-82eb4f93e549",
"description": "rotate punctuation",
"property": "rotate",
"input": {
"text": "Let's eat, Grandma!",
"shiftKey": 21
},
"expected": "Gzo'n zvo, Bmviyhv!"
},
{
"uuid": "9fb93fe6-42b0-46e6-9ec1-0bf0a062d8c9",
"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."
}
]
}