day03 finished
This commit is contained in:
parent
8f66f44335
commit
c95e1d02ec
5 changed files with 378 additions and 0 deletions
17
advent/days/day03/test_solution.py
Normal file
17
advent/days/day03/test_solution.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
from advent.common import utils
|
||||
|
||||
from .solution import day_num, part1, part2
|
||||
|
||||
|
||||
def test_part1():
|
||||
data = utils.read_data(day_num, 'test01.txt')
|
||||
expected = 157
|
||||
result = part1(data)
|
||||
assert result == expected
|
||||
|
||||
|
||||
def test_part2():
|
||||
data = utils.read_data(day_num, 'test01.txt')
|
||||
expected = 70
|
||||
result = part2(data)
|
||||
assert result == expected
|
||||
Loading…
Add table
Add a link
Reference in a new issue