Skip to content

Commit dc86ed9

Browse files
Merge pull request #1079 from ErikSchierboom/say-input
say: Apply new "input" policy
2 parents 506de96 + c1467a0 commit dc86ed9

File tree

1 file changed

+47
-17
lines changed

1 file changed

+47
-17
lines changed

exercises/say/canonical-data.json

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exercise": "say",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"comments": [
55
"Here -1 is used as expected value to indicate that the",
66
"input value is out of the range described in the exercise."
@@ -9,92 +9,122 @@
99
{
1010
"description": "zero",
1111
"property": "say",
12-
"input": 0,
12+
"input": {
13+
"number": 0
14+
},
1315
"expected": "zero"
1416
},
1517
{
1618
"description": "one",
1719
"property": "say",
18-
"input": 1,
20+
"input": {
21+
"number": 1
22+
},
1923
"expected": "one"
2024
},
2125
{
2226
"description": "fourteen",
2327
"property": "say",
24-
"input": 14,
28+
"input": {
29+
"number": 14
30+
},
2531
"expected": "fourteen"
2632
},
2733
{
2834
"description": "twenty",
2935
"property": "say",
30-
"input": 20,
36+
"input": {
37+
"number": 20
38+
},
3139
"expected": "twenty"
3240
},
3341
{
3442
"description": "twenty-two",
3543
"property": "say",
36-
"input": 22,
44+
"input": {
45+
"number": 22
46+
},
3747
"expected": "twenty-two"
3848
},
3949
{
4050
"description": "one hundred",
4151
"property": "say",
42-
"input": 100,
52+
"input": {
53+
"number": 100
54+
},
4355
"expected": "one hundred"
4456
},
4557
{
4658
"description": "one hundred twenty-three",
4759
"property": "say",
48-
"input": 123,
60+
"input": {
61+
"number": 123
62+
},
4963
"expected": "one hundred twenty-three"
5064
},
5165
{
5266
"description": "one thousand",
5367
"property": "say",
54-
"input": 1000,
68+
"input": {
69+
"number": 1000
70+
},
5571
"expected": "one thousand"
5672
},
5773
{
5874
"description": "one thousand two hundred thirty-four",
5975
"property": "say",
60-
"input": 1234,
76+
"input": {
77+
"number": 1234
78+
},
6179
"expected": "one thousand two hundred thirty-four"
6280
},
6381
{
6482
"description": "one million",
6583
"property": "say",
66-
"input": 1000000,
84+
"input": {
85+
"number": 1000000
86+
},
6787
"expected": "one million"
6888
},
6989
{
7090
"description": "one million two thousand three hundred forty-five",
7191
"property": "say",
72-
"input": 1002345,
92+
"input": {
93+
"number": 1002345
94+
},
7395
"expected": "one million two thousand three hundred forty-five"
7496
},
7597
{
7698
"description": "one billion",
7799
"property": "say",
78-
"input": 1000000000,
100+
"input": {
101+
"number": 1000000000
102+
},
79103
"expected": "one billion"
80104
},
81105
{
82106
"description": "a big number",
83107
"property": "say",
84-
"input": 987654321123,
108+
"input": {
109+
"number": 987654321123
110+
},
85111
"expected": "nine hundred eighty-seven billion six hundred fifty-four million three hundred twenty-one thousand one hundred twenty-three"
86112
},
87113
{
88114
"description": "numbers below zero are out of range",
89115
"property": "say",
90-
"input": -1,
116+
"input": {
117+
"number": -1
118+
},
91119
"expected": -1
92120
},
93121
{
94122
"description": "numbers above 999,999,999,999 are out of range",
95123
"property": "say",
96-
"input": 1000000000000,
124+
"input": {
125+
"number": 1000000000000
126+
},
97127
"expected": -1
98128
}
99129
]
100-
}
130+
}

0 commit comments

Comments
 (0)