from unittest import TestCase from benchmark.zellers_birthday import zeller class Test_zeller(TestCase): # distances_true = {1: [1], 2: [6], 3: [0], 4: [0], 5: [1923], 7: [5], 8: [0]} # distances_false = {1: [0], 2: [0], 3: [78], 4: [1], 5: [0], 7: [0], 8: [1]} def test_zeller_1(self): assert zeller(d=31, m=7, y=-22) == 'Sunday' # distances_true = {1: [0], 2: [0], 3: [0], 4: [0], 5: [1923], 7: [0], 8: [3, 2, 1, 0]} # distances_false = {1: [1], 2: [1], 3: [78], 4: [1], 5: [0], 7: [1], 8: [0, 0, 0, 1]} def test_zeller_2(self): assert zeller(d=32, m=13, y=-22) == 'Wednesday' # distances_true = {1: [1], 2: [0], 3: [0], 4: [8], 5: [0], 6: [0], 7: [0], 8: [1, 0]} # distances_false = {1: [0], 2: [1], 3: [70], 4: [0], 5: [70], 6: [8], 7: [1], 8: [0, 1]} def test_zeller_3(self): assert zeller(d=31, m=13, y=-30) == 'Monday'