advent-of-code/2020/test_day10_part2.py

14 lines
246 B
Python
Raw Permalink Normal View History

2020-12-10 14:36:35 +01:00
from day10_adapter_array import solve_part_2
def test_only_one_path():
assert solve_part_2([0, 1]) == 1
def test_one_long_paths():
assert solve_part_2([0, 1, 4, 7]) == 1
def test_two_paths():
assert solve_part_2([0, 1, 2]) == 2