コード例 #1
0
def test__is_cat_leap_year__succeeds():
    assert catmath.is_cat_leap_year(2016) is True
    assert catmath.is_cat_leap_year(1968) is True
    assert catmath.is_cat_leap_year(1984) is True
    assert catmath.is_cat_leap_year(1700) is False
    assert catmath.is_cat_leap_year(2014) is False
    assert catmath.is_cat_leap_year(1985) is False
コード例 #2
0
ファイル: test_catmath.py プロジェクト: autoferrit/catinabox
def test__is_cat_leap_year__succeeds():
    assert catmath.is_cat_leap_year(2016) is True
    assert catmath.is_cat_leap_year(2012) is True
    assert catmath.is_cat_leap_year(2015) is False
コード例 #3
0
def test__is_cat_leap_year__succeeds():
    # ...for a certain definition of "success."
    assert catmath.is_cat_leap_year(2011) is False
    assert catmath.is_cat_leap_year(2000) is True
    assert catmath.is_cat_leap_year(2016) is True
コード例 #4
0
ファイル: test_catmath.py プロジェクト: tsterkd/catinabox
def test__is_cat_leap_year__succeeds():
    assert catmath.is_cat_leap_year(2016) is True
コード例 #5
0
def test__is_cat_leap_year__succeeds():
    assert catmath.is_cat_leap_year(2016) is True
    assert catmath.is_cat_leap_year(2017) is False
    assert catmath.is_cat_leap_year(2000) is True
    assert catmath.is_cat_leap_year(2100) is False
コード例 #6
0
ファイル: test_catmath.py プロジェクト: fureigh/catinabox
def test__is_cat_leap_year__succeeds():
    # ...for a certain definition of "success."
    assert catmath.is_cat_leap_year(2011) is False
    assert catmath.is_cat_leap_year(2000) is True
    assert catmath.is_cat_leap_year(2016) is True
コード例 #7
0
def test__is_cat_leap_year__fails():
    assert catmath.is_cat_leap_year(2015) is False
コード例 #8
0
def test__is_cat_leap_year__800():
    assert catmath.is_cat_leap_year(800) is True
コード例 #9
0
def test__is_cat_leap_year__100():
    assert catmath.is_cat_leap_year(100) is False
コード例 #10
0
def test__is_year_divisble_by_400__returns_true():
    assert catmath.is_cat_leap_year(2400) is True
コード例 #11
0
def test__is_cat_leap_year__centurial_not_divisible_by_400_year__succeeds():
    assert catmath.is_cat_leap_year(1700) is False
コード例 #12
0
def test__is_cat_leap_year__nonleap_year__succeeds():
    assert catmath.is_cat_leap_year(1999) is False
コード例 #13
0
def test__is_cat_leap_year__year_2000__true():
    assert catmath.is_cat_leap_year(2000) is True
コード例 #14
0
ファイル: test_catmath.py プロジェクト: sprckt/catinabox
def test__is_cat_leap_quad_century__succeeds():
    assert catmath.is_cat_leap_year(1600) is True
コード例 #15
0
ファイル: test_catmath.py プロジェクト: sprckt/catinabox
def test__is_cat_leap_century__succeeds():
    assert catmath.is_cat_leap_year(1804) is True