From 413b24a726f8230a7faf33aa6c6146a25f77a0cd Mon Sep 17 00:00:00 2001 From: Peter Tseng Date: Sat, 10 Oct 2020 04:20:01 +0000 Subject: [PATCH] leap: add years that refute some unusual factors (#98) https://github.com/exercism/problem-specifications/pull/1581 --- exercises/leap/.meta/tests.toml | 6 +++--- exercises/leap/source/leap/LeapTest.ceylon | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/exercises/leap/.meta/tests.toml b/exercises/leap/.meta/tests.toml index a8da609..8e23f53 100644 --- a/exercises/leap/.meta/tests.toml +++ b/exercises/leap/.meta/tests.toml @@ -10,19 +10,19 @@ "4fe9b84c-8e65-489e-970b-856d60b8b78e" = true # year divisible by 4 and 5 is still a leap year -"7fc6aed7-e63c-48f5-ae05-5fe182f60a5d" = false +"7fc6aed7-e63c-48f5-ae05-5fe182f60a5d" = true # year divisible by 100, not divisible by 400 in common year "78a7848f-9667-4192-ae53-87b30c9a02dd" = true # year divisible by 100 but not by 3 is still not a leap year -"9d70f938-537c-40a6-ba19-f50739ce8bac" = false +"9d70f938-537c-40a6-ba19-f50739ce8bac" = true # year divisible by 400 in leap year "42ee56ad-d3e6-48f1-8e3f-c84078d916fc" = true # year divisible by 400 but not by 125 is still a leap year -"57902c77-6fe9-40de-8302-587b5c27121e" = false +"57902c77-6fe9-40de-8302-587b5c27121e" = true # year divisible by 200, not divisible by 400 in common year "c30331f6-f9f6-4881-ad38-8ca8c12520c1" = true diff --git a/exercises/leap/source/leap/LeapTest.ceylon b/exercises/leap/source/leap/LeapTest.ceylon index 7e4c525..933de40 100644 --- a/exercises/leap/source/leap/LeapTest.ceylon +++ b/exercises/leap/source/leap/LeapTest.ceylon @@ -8,8 +8,11 @@ import ceylon.test { [2015, false], [1970, false], [1996, true], + [1960, true], [2100, false], + [1900, false], [2000, true], + [2400, true], [1800, false] };