Skip to content

Commit da8a54d

Browse files
atbash-cipher: Apply new "input" policy
1 parent 19b4d9b commit da8a54d

File tree

2 files changed

+38
-14
lines changed

2 files changed

+38
-14
lines changed

exercises/atbash-cipher/canonical-data.json

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,49 +14,65 @@
1414
{
1515
"description": "encode yes",
1616
"property": "encode",
17-
"phrase": "yes",
17+
"input": {
18+
"phrase": "yes"
19+
},
1820
"expected": "bvh"
1921
},
2022
{
2123
"description": "encode no",
2224
"property": "encode",
23-
"phrase": "no",
25+
"input": {
26+
"phrase": "no"
27+
},
2428
"expected": "ml"
2529
},
2630
{
2731
"description": "encode OMG",
2832
"property": "encode",
29-
"phrase": "OMG",
33+
"input": {
34+
"phrase": "OMG"
35+
},
3036
"expected": "lnt"
3137
},
3238
{
3339
"description": "encode spaces",
3440
"property": "encode",
35-
"phrase": "O M G",
41+
"input": {
42+
"phrase": "O M G"
43+
},
3644
"expected": "lnt"
3745
},
3846
{
3947
"description": "encode mindblowingly",
4048
"property": "encode",
41-
"phrase": "mindblowingly",
49+
"input": {
50+
"phrase": "mindblowingly"
51+
},
4252
"expected": "nrmwy oldrm tob"
4353
},
4454
{
4555
"description": "encode numbers",
4656
"property": "encode",
47-
"phrase": "Testing,1 2 3, testing.",
57+
"input": {
58+
"phrase": "Testing,1 2 3, testing."
59+
},
4860
"expected": "gvhgr mt123 gvhgr mt"
4961
},
5062
{
5163
"description": "encode deep thought",
5264
"property": "encode",
53-
"phrase": "Truth is fiction.",
65+
"input": {
66+
"phrase": "Truth is fiction."
67+
},
5468
"expected": "gifgs rhurx grlm"
5569
},
5670
{
5771
"description": "encode all the letters",
5872
"property": "encode",
59-
"phrase": "The quick brown fox jumps over the lazy dog.",
73+
"input": {
74+
"phrase": "The quick brown fox jumps over the lazy dog."
75+
},
6076
"expected": "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt"
6177
}
6278
]
@@ -68,28 +84,36 @@
6884
{
6985
"description": "decode exercism",
7086
"property": "decode",
71-
"phrase": "vcvix rhn",
87+
"input": {
88+
"phrase": "vcvix rhn"
89+
},
7290
"expected": "exercism"
7391
},
7492
{
7593
"description": "decode a sentence",
7694
"property": "decode",
77-
"phrase": "zmlyh gzxov rhlug vmzhg vkkrm thglm v",
95+
"input": {
96+
"phrase": "zmlyh gzxov rhlug vmzhg vkkrm thglm v"
97+
},
7898
"expected": "anobstacleisoftenasteppingstone"
7999
},
80100
{
81101
"description": "decode numbers",
82102
"property": "decode",
83-
"phrase": "gvhgr mt123 gvhgr mt",
103+
"input": {
104+
"phrase": "gvhgr mt123 gvhgr mt"
105+
},
84106
"expected": "testing123testing"
85107
},
86108
{
87109
"description": "decode all the letters",
88110
"property": "decode",
89-
"phrase": "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt",
111+
"input": {
112+
"phrase": "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt"
113+
},
90114
"expected": "thequickbrownfoxjumpsoverthelazydog"
91115
}
92116
]
93117
}
94118
]
95-
}
119+
}

exercises/bracket-push/canonical-data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exercise": "bracket-push",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"cases": [
55
{
66
"description": "paired square brackets",

0 commit comments

Comments
 (0)