Skip to content

Commit 24c287b

Browse files
Merge pull request #1105 from ErikSchierboom/sieve-input
sieve: Apply new "input" policy
2 parents 1d5ac32 + 8bbb634 commit 24c287b

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

exercises/sieve/canonical-data.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,45 @@
11
{
22
"exercise": "sieve",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"cases": [
55
{
66
"description": "no primes under two",
77
"property": "primes",
8-
"limit": 1,
8+
"input": {
9+
"limit": 1
10+
},
911
"expected": []
1012
},
1113
{
1214
"description": "find first prime",
1315
"property": "primes",
14-
"limit": 2,
16+
"input": {
17+
"limit": 2
18+
},
1519
"expected": [2]
1620
},
1721
{
1822
"description": "find primes up to 10",
1923
"property": "primes",
20-
"limit": 10,
24+
"input": {
25+
"limit": 10
26+
},
2127
"expected": [2, 3, 5, 7]
2228
},
2329
{
2430
"description": "limit is prime",
2531
"property": "primes",
26-
"limit": 13,
32+
"input": {
33+
"limit": 13
34+
},
2735
"expected": [2, 3, 5, 7, 11, 13]
2836
},
2937
{
3038
"description": "find primes up to 1000",
3139
"property": "primes",
32-
"limit": 1000,
40+
"input": {
41+
"limit": 1000
42+
},
3343
"expected": [
3444
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43,
3545
47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107,

0 commit comments

Comments
 (0)