Skip to content

Leap: Improve the specification so that code generation is more readable - … #1468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions exercises/leap/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
{
"exercise": "leap",
"version": "1.5.0",
"version": "1.5.1",
"cases": [
{
"description": "year not divisible by 4: common year",
"description": "year not divisible by 4 in common year",
"property": "leapYear",
"input": {
"year": 2015
},
"expected": false
},
{
"description": "year divisible by 2, not divisible by 4: common year",
"description": "year divisible by 2, not divisible by 4 in common year",
"property": "leapYear",
"input": {
"year": 1970
},
"expected": false
},
{
"description": "year divisible by 4, not divisible by 100: leap year",
"description": "year divisible by 4, not divisible by 100 in leap year",
"property": "leapYear",
"input": {
"year": 1996
},
"expected": true
},
{
"description": "year divisible by 100, not divisible by 400: common year",
"description": "year divisible by 100, not divisible by 400 in common year",
"property": "leapYear",
"input": {
"year": 2100
},
"expected": false
},
{
"description": "year divisible by 400: leap year",
"description": "year divisible by 400 in leap year",
"property": "leapYear",
"input": {
"year": 2000
},
"expected": true
},
{
"description": "year divisible by 200, not divisible by 400: common year",
"description": "year divisible by 200, not divisible by 400 in common year",
"property": "leapYear",
"input": {
"year": 1800
Expand Down