Skip to content

Commit

Permalink
leap: update tests to v1.5.1 (#1730)
Browse files Browse the repository at this point in the history
Fixes #1727
  • Loading branch information
AnAccountForReportingBugs authored and cmccandless committed Mar 25, 2019
1 parent 7574242 commit bf0b7f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exercises/leap/leap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
from leap import is_leap_year


# Tests adapted from `problem-specifications//canonical-data.json` @ v1.4.0
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.5.1

class LeapTest(unittest.TestCase):
def test_year_not_divisible_by_4(self):
self.assertIs(is_leap_year(2015), False)

def year_divisible_by_2_not_divisible_by_4(self):
self.assertIs(is_leap_year(1970), False)

def test_year_divisible_by_4_not_divisible_by_100(self):
self.assertIs(is_leap_year(1996), True)

Expand Down

0 comments on commit bf0b7f2

Please sign in to comment.