day21 finished
This commit is contained in:
parent
122f3a3730
commit
e7bf3149c8
6 changed files with 2933 additions and 0 deletions
17
advent/days/day21/test_solution.py
Normal file
17
advent/days/day21/test_solution.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
from advent.common import input
|
||||
|
||||
from .solution import day_num, part1, part2
|
||||
|
||||
|
||||
def test_part1():
|
||||
lines = input.read_lines(day_num, 'example01.txt')
|
||||
expected = 152
|
||||
result = part1(lines)
|
||||
assert result == expected
|
||||
|
||||
|
||||
def test_part2():
|
||||
lines = input.read_lines(day_num, 'example01.txt')
|
||||
expected = 301
|
||||
result = part2(lines)
|
||||
assert result == expected
|
||||
Loading…
Add table
Add a link
Reference in a new issue