From dda678b6dba500c15ad6b4aa7f4e8e6a2e2661b8 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Sun, 31 Dec 2017 09:24:52 +0100 Subject: [PATCH] atbash-cipher: Apply new "input" policy --- exercises/atbash-cipher/canonical-data.json | 52 +++++++++++++++------ 1 file changed, 38 insertions(+), 14 deletions(-) diff --git a/exercises/atbash-cipher/canonical-data.json b/exercises/atbash-cipher/canonical-data.json index 56d30946ed..8e7de8c41e 100644 --- a/exercises/atbash-cipher/canonical-data.json +++ b/exercises/atbash-cipher/canonical-data.json @@ -1,6 +1,6 @@ { "exercise": "atbash-cipher", - "version": "1.0.0", + "version": "1.1.0", "comments": [ "The tests are divided into two groups: ", "* Encoding from English to atbash cipher", @@ -14,49 +14,65 @@ { "description": "encode yes", "property": "encode", - "phrase": "yes", + "input": { + "phrase": "yes" + }, "expected": "bvh" }, { "description": "encode no", "property": "encode", - "phrase": "no", + "input": { + "phrase": "no" + }, "expected": "ml" }, { "description": "encode OMG", "property": "encode", - "phrase": "OMG", + "input": { + "phrase": "OMG" + }, "expected": "lnt" }, { "description": "encode spaces", "property": "encode", - "phrase": "O M G", + "input": { + "phrase": "O M G" + }, "expected": "lnt" }, { "description": "encode mindblowingly", "property": "encode", - "phrase": "mindblowingly", + "input": { + "phrase": "mindblowingly" + }, "expected": "nrmwy oldrm tob" }, { "description": "encode numbers", "property": "encode", - "phrase": "Testing,1 2 3, testing.", + "input": { + "phrase": "Testing,1 2 3, testing." + }, "expected": "gvhgr mt123 gvhgr mt" }, { "description": "encode deep thought", "property": "encode", - "phrase": "Truth is fiction.", + "input": { + "phrase": "Truth is fiction." + }, "expected": "gifgs rhurx grlm" }, { "description": "encode all the letters", "property": "encode", - "phrase": "The quick brown fox jumps over the lazy dog.", + "input": { + "phrase": "The quick brown fox jumps over the lazy dog." + }, "expected": "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt" } ] @@ -68,28 +84,36 @@ { "description": "decode exercism", "property": "decode", - "phrase": "vcvix rhn", + "input": { + "phrase": "vcvix rhn" + }, "expected": "exercism" }, { "description": "decode a sentence", "property": "decode", - "phrase": "zmlyh gzxov rhlug vmzhg vkkrm thglm v", + "input": { + "phrase": "zmlyh gzxov rhlug vmzhg vkkrm thglm v" + }, "expected": "anobstacleisoftenasteppingstone" }, { "description": "decode numbers", "property": "decode", - "phrase": "gvhgr mt123 gvhgr mt", + "input": { + "phrase": "gvhgr mt123 gvhgr mt" + }, "expected": "testing123testing" }, { "description": "decode all the letters", "property": "decode", - "phrase": "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt", + "input": { + "phrase": "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt" + }, "expected": "thequickbrownfoxjumpsoverthelazydog" } ] } ] -} +} \ No newline at end of file