Skip to content
Permalink
9e094d5700
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
20 lines (15 sloc) 378 Bytes
import pytest
from leap_year.leap_year import is_leap_year
@pytest.mark.parametrize("year,flag", [
(1896, True),
(1900, False),
(1904, True),
(1996, True),
(2000, True),
(2004, True),
(2096, True),
(2100, False),
(2104, True),
])
def test_leap_years(year, flag):
assert flag == is_leap_year(year)