|
1 |
| -{ |
2 |
| - "#": [ |
3 |
| - "The tests are divided into two groups: ", |
4 |
| - "* Encoding from English to atbash cipher", |
5 |
| - "* Decoding from atbash cipher to all-lowercase-mashed-together English" |
6 |
| - ], |
7 |
| - "encode": { |
8 |
| - "description": ["Test encoding from English to atbash"], |
9 |
| - "cases": [ |
10 |
| - { |
11 |
| - "description": "encode yes", |
12 |
| - "phrase": "yes", |
13 |
| - "expected": "bvh" |
14 |
| - }, |
15 |
| - { |
16 |
| - "description": "encode no", |
17 |
| - "phrase": "no", |
18 |
| - "expected": "ml" |
19 |
| - }, |
20 |
| - { |
21 |
| - "description": "encode OMG", |
22 |
| - "phrase": "OMG", |
23 |
| - "expected": "lnt" |
24 |
| - }, |
25 |
| - { |
26 |
| - "description": "encode spaces", |
27 |
| - "phrase": "O M G", |
28 |
| - "expected": "lnt" |
29 |
| - }, |
30 |
| - { |
31 |
| - "description": "encode mindblowingly", |
32 |
| - "phrase": "mindblowingly", |
33 |
| - "expected": "nrmwy oldrm tob" |
34 |
| - }, |
35 |
| - { |
36 |
| - "description": "encode numbers", |
37 |
| - "phrase": "Testing,1 2 3, testing.", |
38 |
| - "expected": "gvhgr mt123 gvhgr mt" |
39 |
| - }, |
40 |
| - { |
41 |
| - "description": "encode deep thought", |
42 |
| - "phrase": "Truth is fiction.", |
43 |
| - "expected": "gifgs rhurx grlm" |
44 |
| - }, |
45 |
| - { |
46 |
| - "description": "encode all the letters", |
47 |
| - "phrase": "The quick brown fox jumps over the lazy dog.", |
48 |
| - "expected": "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt" |
49 |
| - } |
50 |
| - ] |
| 1 | +{ |
| 2 | + "exercise": "atbash-cipher", |
| 3 | + "version": "1.0.0", |
| 4 | + "comments": [ |
| 5 | + "The tests are divided into two groups: ", |
| 6 | + "* Encoding from English to atbash cipher", |
| 7 | + "* Decoding from atbash cipher to all-lowercase-mashed-together English" |
| 8 | + ], |
| 9 | + "cases": [ |
| 10 | + { |
| 11 | + "description": "encode", |
| 12 | + "comments": [ "Test encoding from English to atbash" ], |
| 13 | + "cases": [ |
| 14 | + { |
| 15 | + "description": "encode yes", |
| 16 | + "property": "encode", |
| 17 | + "phrase": "yes", |
| 18 | + "expected": "bvh" |
| 19 | + }, |
| 20 | + { |
| 21 | + "description": "encode no", |
| 22 | + "property": "encode", |
| 23 | + "phrase": "no", |
| 24 | + "expected": "ml" |
| 25 | + }, |
| 26 | + { |
| 27 | + "description": "encode OMG", |
| 28 | + "property": "encode", |
| 29 | + "phrase": "OMG", |
| 30 | + "expected": "lnt" |
| 31 | + }, |
| 32 | + { |
| 33 | + "description": "encode spaces", |
| 34 | + "property": "encode", |
| 35 | + "phrase": "O M G", |
| 36 | + "expected": "lnt" |
| 37 | + }, |
| 38 | + { |
| 39 | + "description": "encode mindblowingly", |
| 40 | + "property": "encode", |
| 41 | + "phrase": "mindblowingly", |
| 42 | + "expected": "nrmwy oldrm tob" |
| 43 | + }, |
| 44 | + { |
| 45 | + "description": "encode numbers", |
| 46 | + "property": "encode", |
| 47 | + "phrase": "Testing,1 2 3, testing.", |
| 48 | + "expected": "gvhgr mt123 gvhgr mt" |
| 49 | + }, |
| 50 | + { |
| 51 | + "description": "encode deep thought", |
| 52 | + "property": "encode", |
| 53 | + "phrase": "Truth is fiction.", |
| 54 | + "expected": "gifgs rhurx grlm" |
| 55 | + }, |
| 56 | + { |
| 57 | + "description": "encode all the letters", |
| 58 | + "property": "encode", |
| 59 | + "phrase": "The quick brown fox jumps over the lazy dog.", |
| 60 | + "expected": "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt" |
| 61 | + } |
| 62 | + ] |
51 | 63 | },
|
52 |
| - "decode": { |
53 |
| - "description": ["Test decoding from atbash to English"], |
54 |
| - "cases": [ |
55 |
| - { |
56 |
| - "description": "decode exercism", |
57 |
| - "phrase": "vcvix rhn", |
58 |
| - "expected": "exercism" |
59 |
| - }, |
60 |
| - { |
61 |
| - "description": "decode a sentence", |
62 |
| - "phrase": "zmlyh gzxov rhlug vmzhg vkkrm thglm v", |
63 |
| - "expected": "anobstacleisoftenasteppingstone" |
64 |
| - }, |
65 |
| - { |
66 |
| - "description": "decode numbers", |
67 |
| - "phrase": "gvhgr mt123 gvhgr mt", |
68 |
| - "expected": "testing123testing" |
69 |
| - }, |
70 |
| - { |
71 |
| - "description": "decode all the letters", |
72 |
| - "phrase": "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt", |
73 |
| - "expected": "thequickbrownfoxjumpsoverthelazydog" |
74 |
| - } |
75 |
| - ] |
| 64 | + { |
| 65 | + "description": "decode", |
| 66 | + "comments": [ "Test decoding from atbash to English" ], |
| 67 | + "cases": [ |
| 68 | + { |
| 69 | + "description": "decode exercism", |
| 70 | + "property": "decode", |
| 71 | + "phrase": "vcvix rhn", |
| 72 | + "expected": "exercism" |
| 73 | + }, |
| 74 | + { |
| 75 | + "description": "decode a sentence", |
| 76 | + "property": "decode", |
| 77 | + "phrase": "zmlyh gzxov rhlug vmzhg vkkrm thglm v", |
| 78 | + "expected": "anobstacleisoftenasteppingstone" |
| 79 | + }, |
| 80 | + { |
| 81 | + "description": "decode numbers", |
| 82 | + "property": "decode", |
| 83 | + "phrase": "gvhgr mt123 gvhgr mt", |
| 84 | + "expected": "testing123testing" |
| 85 | + }, |
| 86 | + { |
| 87 | + "description": "decode all the letters", |
| 88 | + "property": "decode", |
| 89 | + "phrase": "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt", |
| 90 | + "expected": "thequickbrownfoxjumpsoverthelazydog" |
| 91 | + } |
| 92 | + ] |
76 | 93 | }
|
| 94 | + ] |
77 | 95 | }
|
0 commit comments