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