From b3c49c701835b0fcaf2634ad6dc0caa1da1e3db5 Mon Sep 17 00:00:00 2001 From: Karen Palacio Date: Sat, 5 Oct 2019 12:16:30 -0300 Subject: [PATCH 1/2] Upgrade leap to 1.6.0 added tests for exercism/problem-specifications#1581 --- exercises/leap/package.yaml | 2 +- exercises/leap/test/Tests.hs | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/exercises/leap/package.yaml b/exercises/leap/package.yaml index a99794dfc..2999ff9b6 100644 --- a/exercises/leap/package.yaml +++ b/exercises/leap/package.yaml @@ -1,5 +1,5 @@ name: leap -version: 1.5.1.9 +version: 1.6.0.0 dependencies: - base diff --git a/exercises/leap/test/Tests.hs b/exercises/leap/test/Tests.hs index 471df2226..fb0a245e2 100644 --- a/exercises/leap/test/Tests.hs +++ b/exercises/leap/test/Tests.hs @@ -37,14 +37,26 @@ cases = [ Case { description = "year not divisible by 4 in common year" , input = 1996 , expected = True } + , Case { description = "year divisible by 4 and 5 is still a leap year" + , input = 1960 + , expected = True + } , Case { description = "year divisible by 100, not divisible by 400 in common year" , input = 2100 , expected = False } + , Case { description = "year divisible by 100 but not by 3 is still not a leap year" + , input = 1900 + , expected = False + } , Case { description = "year divisible by 400 in leap year" , input = 2000 , expected = True } + , Case { description = "year divisible by 400 but not by 125 is still a leap year" + , input = 2400 + , expected = True + } , Case { description = "year divisible by 200, not divisible by 400 in common year" , input = 1800 , expected = False From 716cc34cb5141f589da6655f521add6256acd905 Mon Sep 17 00:00:00 2001 From: Simon Shine Date: Sat, 5 Oct 2019 23:12:06 +0200 Subject: [PATCH 2/2] Change versions from 1.5.0.9 to 1.6.0.10 instead --- exercises/leap/package.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/leap/package.yaml b/exercises/leap/package.yaml index 2999ff9b6..5364801aa 100644 --- a/exercises/leap/package.yaml +++ b/exercises/leap/package.yaml @@ -1,5 +1,5 @@ name: leap -version: 1.6.0.0 +version: 1.6.0.10 dependencies: - base