Sha256: d2000ba232ead02ef31f19091e6d5e6b722352d63e22da343404fb705d663b2a

Contents?: true

Size: 551 Bytes

Versions: 107

Compression:

Stored size: 551 Bytes

Contents

import unittest

from leap import is_leap_year


class YearTest(unittest.TestCase):
    def test_leap_year(self):
        self.assertIs(is_leap_year(1996), True)

    def test_non_leap_year(self):
        self.assertIs(is_leap_year(1997), False)

    def test_non_leap_even_year(self):
        self.assertIs(is_leap_year(1998), False)

    def test_century(self):
        self.assertIs(is_leap_year(1900), False)

    def test_exceptional_century(self):
        self.assertIs(is_leap_year(2400), True)


if __name__ == '__main__':
    unittest.main()

Version data entries

107 entries across 107 versions & 1 rubygems

Version Path
trackler-2.0.6.37 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.36 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.35 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.34 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.33 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.32 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.31 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.30 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.29 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.28 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.27 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.26 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.25 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.24 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.23 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.22 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.21 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.20 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.19 tracks/python/exercises/leap/leap_test.py
trackler-2.0.6.18 tracks/python/exercises/leap/leap_test.py