diff --git a/exercises/leap/canonical-data.json b/exercises/leap/canonical-data.json index 4c32ba1cf3..aed412c1e8 100644 --- a/exercises/leap/canonical-data.json +++ b/exercises/leap/canonical-data.json @@ -1,6 +1,6 @@ { "exercise": "leap", - "version": "1.5.1", + "version": "1.6.0", "cases": [ { "description": "year not divisible by 4 in common year", @@ -26,6 +26,14 @@ }, "expected": true }, + { + "description": "year divisible by 4 and 5 is still a leap year", + "property": "leapYear", + "input": { + "year": 1960 + }, + "expected": true + }, { "description": "year divisible by 100, not divisible by 400 in common year", "property": "leapYear", @@ -34,6 +42,14 @@ }, "expected": false }, + { + "description": "year divisible by 100 but not by 3 is still not a leap year", + "property": "leapYear", + "input": { + "year": 1900 + }, + "expected": false + }, { "description": "year divisible by 400 in leap year", "property": "leapYear", @@ -42,6 +58,14 @@ }, "expected": true }, + { + "description": "year divisible by 400 but not by 125 is still a leap year", + "property": "leapYear", + "input": { + "year": 2400 + }, + "expected": true + }, { "description": "year divisible by 200, not divisible by 400 in common year", "property": "leapYear",