def test_solve_part2(input_path: str, expected: int) -> None: with open(input_path) as f: assert exercise_part2.solve(f.read()) == expected
def test_solve_part1() -> None: preamble = 5 expected = 62 with open('test_input.txt') as f: assert exercise_part2.solve(f.read(), preamble) == expected
def test_solve_part2(input: str, expected: int) -> None: assert exercise_part2.solve(input) == expected
def test_solve_part2() -> None: expected = 336 with open('test_input.txt') as f: assert exercise_part2.solve(f.read()) == expected