def test_case_01(self): conflict_meetings = [ ((8, 10), (9, 11)), ((7, 10), (8, 9)), ((8, 11), (9, 11)), ] conflicts = [conflict(*m) for m in conflict_meetings] self.assertEqual(conflicts, [True]*3)
def test_case_02(self): non_conflict_meetings = [ ((8, 10), (10, 11)), ((7, 10), (6, 7)), ((8, 11), (12, 14)), ] conflicts = [conflict(*m) for m in non_conflict_meetings] self.assertEqual(conflicts, [False]*3)