From 4498dabb04172ff14dc2a56d3213e4d6c7b73ee0 Mon Sep 17 00:00:00 2001 From: rbasso Date: Tue, 7 Mar 2017 15:13:27 +0900 Subject: [PATCH 1/2] say: Make canonical-data.json compliant --- exercises/say/canonical-data.json | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/exercises/say/canonical-data.json b/exercises/say/canonical-data.json index 7f03936ffb..1643e01b96 100644 --- a/exercises/say/canonical-data.json +++ b/exercises/say/canonical-data.json @@ -1,81 +1,98 @@ { - "#": [ + "exercise": "say", + "version": "1.0.0", + "comments": [ "Here -1 is used as expected value to indicate that the", "input value is out of the range described in the exercise." ], "cases": [ { "description": "zero", + "property": "say", "input": 0, "expected": "zero" }, { "description": "one", + "property": "say", "input": 1, "expected": "one" }, { "description": "fourteen", + "property": "say", "input": 14, "expected": "fourteen" }, { "description": "twenty", + "property": "say", "input": 20, "expected": "twenty" }, { "description": "twenty-two", + "property": "say", "input": 22, "expected": "twenty-two" }, { "description": "one hundred", + "property": "say", "input": 100, "expected": "one hundred" }, { "description": "one hundred twenty-three", + "property": "say", "input": 123, "expected": "one hundred twenty-three" }, { "description": "one thousand", + "property": "say", "input": 1000, "expected": "one thousand" }, { "description": "one thousand two hundred thirty-four", + "property": "say", "input": 1234, "expected": "one thousand two hundred thirty-four" }, { "description": "one million", + "property": "say", "input": 1000000, "expected": "one million" }, { "description": "one million two thousand three hundred forty-five", + "property": "say", "input": 1002345, "expected": "one million two thousand three hundred forty-five" }, { "description": "one billion", + "property": "say", "input": 1000000000, "expected": "one billion" }, { "description": "a big number", + "property": "say", "input": 987654321123, "expected": "nine hundred eighty-seven billion six hundred fifty-four million three hundred twenty-one thousand one hundred twenty-three" }, { "description": "numbers below zero are out of range", + "property": "say", "input": -1, "expected": -1 }, { "description": "numbers above 999,999,999,999 are out of range", + "property": "say", "input": 1000000000000, "expected": -1 } From be403e1ba029868948f77aad2e276ea6270f1138 Mon Sep 17 00:00:00 2001 From: rbasso Date: Tue, 7 Mar 2017 15:14:29 +0900 Subject: [PATCH 2/2] say: Fix canonical-data.json formatting --- exercises/say/canonical-data.json | 196 +++++++++++++++--------------- 1 file changed, 98 insertions(+), 98 deletions(-) diff --git a/exercises/say/canonical-data.json b/exercises/say/canonical-data.json index 1643e01b96..5bfbb118dd 100644 --- a/exercises/say/canonical-data.json +++ b/exercises/say/canonical-data.json @@ -1,100 +1,100 @@ { - "exercise": "say", - "version": "1.0.0", - "comments": [ - "Here -1 is used as expected value to indicate that the", - "input value is out of the range described in the exercise." - ], - "cases": [ - { - "description": "zero", - "property": "say", - "input": 0, - "expected": "zero" - }, - { - "description": "one", - "property": "say", - "input": 1, - "expected": "one" - }, - { - "description": "fourteen", - "property": "say", - "input": 14, - "expected": "fourteen" - }, - { - "description": "twenty", - "property": "say", - "input": 20, - "expected": "twenty" - }, - { - "description": "twenty-two", - "property": "say", - "input": 22, - "expected": "twenty-two" - }, - { - "description": "one hundred", - "property": "say", - "input": 100, - "expected": "one hundred" - }, - { - "description": "one hundred twenty-three", - "property": "say", - "input": 123, - "expected": "one hundred twenty-three" - }, - { - "description": "one thousand", - "property": "say", - "input": 1000, - "expected": "one thousand" - }, - { - "description": "one thousand two hundred thirty-four", - "property": "say", - "input": 1234, - "expected": "one thousand two hundred thirty-four" - }, - { - "description": "one million", - "property": "say", - "input": 1000000, - "expected": "one million" - }, - { - "description": "one million two thousand three hundred forty-five", - "property": "say", - "input": 1002345, - "expected": "one million two thousand three hundred forty-five" - }, - { - "description": "one billion", - "property": "say", - "input": 1000000000, - "expected": "one billion" - }, - { - "description": "a big number", - "property": "say", - "input": 987654321123, - "expected": "nine hundred eighty-seven billion six hundred fifty-four million three hundred twenty-one thousand one hundred twenty-three" - }, - { - "description": "numbers below zero are out of range", - "property": "say", - "input": -1, - "expected": -1 - }, - { - "description": "numbers above 999,999,999,999 are out of range", - "property": "say", - "input": 1000000000000, - "expected": -1 - } - ] + "exercise": "say", + "version": "1.0.0", + "comments": [ + "Here -1 is used as expected value to indicate that the", + "input value is out of the range described in the exercise." + ], + "cases": [ + { + "description": "zero", + "property": "say", + "input": 0, + "expected": "zero" + }, + { + "description": "one", + "property": "say", + "input": 1, + "expected": "one" + }, + { + "description": "fourteen", + "property": "say", + "input": 14, + "expected": "fourteen" + }, + { + "description": "twenty", + "property": "say", + "input": 20, + "expected": "twenty" + }, + { + "description": "twenty-two", + "property": "say", + "input": 22, + "expected": "twenty-two" + }, + { + "description": "one hundred", + "property": "say", + "input": 100, + "expected": "one hundred" + }, + { + "description": "one hundred twenty-three", + "property": "say", + "input": 123, + "expected": "one hundred twenty-three" + }, + { + "description": "one thousand", + "property": "say", + "input": 1000, + "expected": "one thousand" + }, + { + "description": "one thousand two hundred thirty-four", + "property": "say", + "input": 1234, + "expected": "one thousand two hundred thirty-four" + }, + { + "description": "one million", + "property": "say", + "input": 1000000, + "expected": "one million" + }, + { + "description": "one million two thousand three hundred forty-five", + "property": "say", + "input": 1002345, + "expected": "one million two thousand three hundred forty-five" + }, + { + "description": "one billion", + "property": "say", + "input": 1000000000, + "expected": "one billion" + }, + { + "description": "a big number", + "property": "say", + "input": 987654321123, + "expected": "nine hundred eighty-seven billion six hundred fifty-four million three hundred twenty-one thousand one hundred twenty-three" + }, + { + "description": "numbers below zero are out of range", + "property": "say", + "input": -1, + "expected": -1 + }, + { + "description": "numbers above 999,999,999,999 are out of range", + "property": "say", + "input": 1000000000000, + "expected": -1 + } + ] }