From e3bd4a2bd915201f97bd2d8087917b7ecdfe5348 Mon Sep 17 00:00:00 2001 From: junedev Date: Sun, 9 Oct 2016 11:09:01 +0200 Subject: [PATCH] say: adding canonical-data.json --- exercises/say/canonical-data.json | 83 +++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 exercises/say/canonical-data.json diff --git a/exercises/say/canonical-data.json b/exercises/say/canonical-data.json new file mode 100644 index 0000000000..7f03936ffb --- /dev/null +++ b/exercises/say/canonical-data.json @@ -0,0 +1,83 @@ +{ + "#": [ + "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", + "input": 0, + "expected": "zero" + }, + { + "description": "one", + "input": 1, + "expected": "one" + }, + { + "description": "fourteen", + "input": 14, + "expected": "fourteen" + }, + { + "description": "twenty", + "input": 20, + "expected": "twenty" + }, + { + "description": "twenty-two", + "input": 22, + "expected": "twenty-two" + }, + { + "description": "one hundred", + "input": 100, + "expected": "one hundred" + }, + { + "description": "one hundred twenty-three", + "input": 123, + "expected": "one hundred twenty-three" + }, + { + "description": "one thousand", + "input": 1000, + "expected": "one thousand" + }, + { + "description": "one thousand two hundred thirty-four", + "input": 1234, + "expected": "one thousand two hundred thirty-four" + }, + { + "description": "one million", + "input": 1000000, + "expected": "one million" + }, + { + "description": "one million two thousand three hundred forty-five", + "input": 1002345, + "expected": "one million two thousand three hundred forty-five" + }, + { + "description": "one billion", + "input": 1000000000, + "expected": "one billion" + }, + { + "description": "a big number", + "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", + "input": -1, + "expected": -1 + }, + { + "description": "numbers above 999,999,999,999 are out of range", + "input": 1000000000000, + "expected": -1 + } + ] +}