Skip to content

Commit

Permalink
Upgrade leap to 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
karen-pal committed Oct 5, 2019
1 parent c3c250e commit e77850c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/leap/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: leap
version: 1.5.1.9
version: 1.6.0.0

dependencies:
- base
Expand Down
12 changes: 12 additions & 0 deletions exercises/leap/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e77850c

Please sign in to comment.