Skip to content

Commit 9b1a59a

Browse files
authored
Merge pull request #979 from cruxicheiros/patch-1
Update to canonical-data v1.2.0: Swap '2016' for '1996' to stop faulty logic from passing unit test in Leap
2 parents ce8c579 + 19351fe commit 9b1a59a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/leap/leap_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
from leap import is_leap_year
44

55

6-
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.0.0
6+
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0
77

88
class YearTest(unittest.TestCase):
99
def test_year_not_divisible_by_4(self):
1010
self.assertIs(is_leap_year(2015), False)
1111

1212
def test_year_divisible_by_4_not_divisible_by_100(self):
13-
self.assertIs(is_leap_year(2016), True)
13+
self.assertIs(is_leap_year(1996), True)
1414

1515
def test_year_divisible_by_100_not_divisible_by_400(self):
1616
self.assertIs(is_leap_year(2100), False)

0 commit comments

Comments
 (0)