def test_part1(self): self.assertEqual(Day04.solve_part1(self.input),1514)
def setUp(self) -> None: self.input = Day04().read_file("tests/test_day04.txt")
def test_part2(self): inputs = [] outputs = [] for input, output in zip(inputs, outputs): self.assertEqual(Day04.solve_part2(input), output)
def test_part1(self): inputs = ["abcdef", "pqrstuv"] outputs = [609043, 1048970] for input, output in zip(inputs, outputs): self.assertEqual(Day04.solve_part1(input), output)
def test_part2(self): input = Day04().read_file("tests/test_day04.2.txt") self.assertEqual(Day04.solve_part2(input), 4)