Skip to content

Commit 8e98df7

Browse files
Merge pull request #1112 from ErikSchierboom/leap-input
leap: Apply new "input" policy
2 parents ab56ddb + e348053 commit 8e98df7

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

exercises/leap/canonical-data.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,38 @@
11
{
22
"exercise": "leap",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"cases": [
55
{
66
"description": "year not divisible by 4: common year",
77
"property": "leapYear",
8-
"input": 2015,
8+
"input": {
9+
"year": 2015
10+
},
911
"expected": false
1012
},
1113
{
1214
"description": "year divisible by 4, not divisible by 100: leap year",
1315
"property": "leapYear",
14-
"input": 1996,
16+
"input": {
17+
"year": 1996
18+
},
1519
"expected": true
1620
},
1721
{
1822
"description": "year divisible by 100, not divisible by 400: common year",
1923
"property": "leapYear",
20-
"input": 2100,
24+
"input": {
25+
"year": 2100
26+
},
2127
"expected": false
2228
},
2329
{
2430
"description": "year divisible by 400: leap year",
2531
"property": "leapYear",
26-
"input": 2000,
32+
"input": {
33+
"year": 2000
34+
},
2735
"expected": true
2836
}
2937
]
30-
}
38+
}

0 commit comments

Comments
 (0)