From e375c969f4f0089f29360731f2a1734b0354cc90 Mon Sep 17 00:00:00 2001 From: Cat Stevens Date: Mon, 6 Mar 2017 11:27:05 -0500 Subject: [PATCH 1/2] leap: Make canonical-data.json compliant --- exercises/leap/canonical-data.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exercises/leap/canonical-data.json b/exercises/leap/canonical-data.json index 9a0750dd7b..ad4bb18c26 100644 --- a/exercises/leap/canonical-data.json +++ b/exercises/leap/canonical-data.json @@ -1,22 +1,28 @@ { + "exercise": "leap", + "version": "1.0.0", "cases": [ { "description": "year not divisible by 4: common year", + "property": "leapYear", "input": 2015, "expected": false }, { "description": "year divisible by 4, not divisible by 100: leap year", + "property": "leapYear", "input": 2016, "expected": true }, { "description": "year divisible by 100, not divisible by 400: common year", + "property": "leapYear", "input": 2100, "expected": false }, { "description": "year divisible by 400: leap year", + "property": "leapYear", "input": 2000, "expected": true } From cc65ebeaf08cf4e230297cefad63c734636c03a3 Mon Sep 17 00:00:00 2001 From: Cat Stevens Date: Mon, 6 Mar 2017 11:27:43 -0500 Subject: [PATCH 2/2] leap: Fix canonical-data.json formatting --- exercises/leap/canonical-data.json | 52 +++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/exercises/leap/canonical-data.json b/exercises/leap/canonical-data.json index ad4bb18c26..799adaa163 100644 --- a/exercises/leap/canonical-data.json +++ b/exercises/leap/canonical-data.json @@ -1,30 +1,30 @@ { "exercise": "leap", "version": "1.0.0", - "cases": [ - { - "description": "year not divisible by 4: common year", - "property": "leapYear", - "input": 2015, - "expected": false - }, - { - "description": "year divisible by 4, not divisible by 100: leap year", - "property": "leapYear", - "input": 2016, - "expected": true - }, - { - "description": "year divisible by 100, not divisible by 400: common year", - "property": "leapYear", - "input": 2100, - "expected": false - }, - { - "description": "year divisible by 400: leap year", - "property": "leapYear", - "input": 2000, - "expected": true - } - ] + "cases": [ + { + "description": "year not divisible by 4: common year", + "property": "leapYear", + "input": 2015, + "expected": false + }, + { + "description": "year divisible by 4, not divisible by 100: leap year", + "property": "leapYear", + "input": 2016, + "expected": true + }, + { + "description": "year divisible by 100, not divisible by 400: common year", + "property": "leapYear", + "input": 2100, + "expected": false + }, + { + "description": "year divisible by 400: leap year", + "property": "leapYear", + "input": 2000, + "expected": true + } + ] }