From a534af88dbff814bab338908369b94cd90942c76 Mon Sep 17 00:00:00 2001 From: Tim Mackinnon Date: Mon, 25 Feb 2019 23:25:40 +0000 Subject: [PATCH 1/3] Improve the specification so that code generation is more readable - e.g. we can generate the test method: testYearNotDivisibleBy4InCommonYear vs. testYearNotDivisibleBy4CommonYear (replace the use of : by the word in) --- exercises/leap/canonical-data.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/exercises/leap/canonical-data.json b/exercises/leap/canonical-data.json index 214044c869..2ae2d88d74 100644 --- a/exercises/leap/canonical-data.json +++ b/exercises/leap/canonical-data.json @@ -3,7 +3,7 @@ "version": "1.4.0", "cases": [ { - "description": "year not divisible by 4: common year", + "description": "year not divisible by 4 in common year", "property": "leapYear", "input": { "year": 2015 @@ -11,7 +11,7 @@ "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 @@ -19,7 +19,7 @@ "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 @@ -27,7 +27,7 @@ "expected": false }, { - "description": "year divisible by 400: leap year", + "description": "year divisible by 400 in leap year", "property": "leapYear", "input": { "year": 2000 @@ -35,7 +35,7 @@ "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 From 5d35bfa0e9b852d618e5afb2917befe0522e97dc Mon Sep 17 00:00:00 2001 From: Tim Mackinnon Date: Mon, 25 Feb 2019 23:46:51 +0000 Subject: [PATCH 2/3] Update minor version number to reflect text change --- exercises/leap/canonical-data.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/leap/canonical-data.json b/exercises/leap/canonical-data.json index 8850ba3403..decaaf880d 100644 --- a/exercises/leap/canonical-data.json +++ b/exercises/leap/canonical-data.json @@ -1,6 +1,6 @@ { "exercise": "leap", - "version": "1.5.0", + "version": "1.6.0", "cases": [ { "description": "year not divisible by 4 in common year", @@ -11,7 +11,7 @@ "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 From 72bf22435d1ef03d5b98e1c576c34f5466c77fdb Mon Sep 17 00:00:00 2001 From: Tim Mackinnon Date: Tue, 26 Feb 2019 12:57:11 +0000 Subject: [PATCH 3/3] Update patch version number to properly reflect the text change --- exercises/leap/canonical-data.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/leap/canonical-data.json b/exercises/leap/canonical-data.json index decaaf880d..4c32ba1cf3 100644 --- a/exercises/leap/canonical-data.json +++ b/exercises/leap/canonical-data.json @@ -1,6 +1,6 @@ { "exercise": "leap", - "version": "1.6.0", + "version": "1.5.1", "cases": [ { "description": "year not divisible by 4 in common year",