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