Пример #1
0
def test_task1(file_name, result):
    r = solve_task1(file_name)
    assert r == result, f"{file_name} failed. It returned with {r} instead of {result}."
Пример #2
0
def test_solve_task1(input_numbers, the_2020th_number):
    output = solve_task1(input_numbers)
    assert the_2020th_number == output, f"Result should be {the_2020th_number} instead of {output}."