Commit 59ff6e25 authored by Jan Klaus Rieck's avatar Jan Klaus Rieck

test is_leap_year

parent f5acd268
Pipeline #3609 passed with stage
in 1 minute and 45 seconds
......@@ -255,6 +255,21 @@ def test_construct_ef(ds_sel):
'e3f has a depth dimension'
[1980, 1981])
def test_is_leap_year(year):
""" Test is_leap_year().
leap = xbox.is_leap_year(year)
if year == 1980:
assert leap,\
'leap year detection failed'
elif year == 1981:
assert not leap,\
'false detection of leap year'
[True, False])
def test_timeave(monthly):
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment