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