Beispiel #1
0
def test_Day2():
    assert day_of_the_week(2057, 5, 3) == calendar.weekday(2057, 5, 3) + 1
Beispiel #2
0
def test_Day7():
    assert day_of_the_week(1912, 1, 1) == calendar.weekday(1912, 1, 1) + 1
Beispiel #3
0
def test_Day1():
    assert day_of_the_week(1940, 12, 31) == 2
Beispiel #4
0
def test_Day5():
    assert day_of_the_week(2002, 11, 29) == calendar.weekday(2002, 11, 29) + 1
Beispiel #5
0
def test_Day6():
    assert day_of_the_week(1976, 6, 16) == calendar.weekday(1976, 6, 16) + 1
Beispiel #6
0
def test_Day3():
    assert day_of_the_week(2018, 10, 30) == 2
Beispiel #7
0
def test_Day4():
    assert day_of_the_week(2200, 7, 14) == calendar.weekday(2200, 7, 14) + 1
Beispiel #8
0
def test05():
    return day_of_the_week(1900, 1, 5) == 5
Beispiel #9
0
def test06():
    return day_of_the_week(2009, 2, 7) == 6
Beispiel #10
0
def test04():
    return day_of_the_week(1989, 11, 9) == 4
Beispiel #11
0
def test03():
    return day_of_the_week(2012, 2, 29) == 3
Beispiel #12
0
def test02():
    return day_of_the_week(2013, 12, 31) == 2
Beispiel #13
0
def test01():
    return day_of_the_week(2013, 3, 11) == 1
Beispiel #14
0
def test00():
    return day_of_the_week(1961, 8, 13) == 0