day01 finished
This commit is contained in:
parent
a355de5d8b
commit
a607fbb329
6 changed files with 2332 additions and 1 deletions
17
advent/days/day01/test_solution.py
Normal file
17
advent/days/day01/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 = 24_000
|
||||
result = part1(data)
|
||||
assert result == expected
|
||||
|
||||
|
||||
def test_part2():
|
||||
data = utils.read_data(day_num, 'test01.txt')
|
||||
expected = 45_000
|
||||
result = part2(data)
|
||||
assert result == expected
|
||||
Loading…
Add table
Add a link
Reference in a new issue