day 1 - part 1 - refactoring
This commit is contained in:
parent
4bdbcdbb56
commit
42f3bcc63e
3 changed files with 6 additions and 6 deletions
|
@ -1,14 +1,14 @@
|
|||
from pathlib import Path
|
||||
|
||||
from day1 import first
|
||||
from day1 import part1
|
||||
|
||||
TEST_FILE = Path(__file__).parent / "first-data"
|
||||
TEST_FILE = Path(__file__).parent / "test-data"
|
||||
|
||||
|
||||
def test_first():
|
||||
assert first.compute(TEST_FILE) == 11
|
||||
assert part1.compute(TEST_FILE) == 11
|
||||
|
||||
|
||||
def test_get_lists():
|
||||
assert first.get_ordered_lists(TEST_FILE)[0] == [1, 2, 3, 3, 3, 4]
|
||||
assert first.get_ordered_lists(TEST_FILE)[1] == [3, 3, 3, 4, 5, 9]
|
||||
assert part1.get_ordered_lists(TEST_FILE)[0] == [1, 2, 3, 3, 3, 4]
|
||||
assert part1.get_ordered_lists(TEST_FILE)[1] == [3, 3, 3, 4, 5, 9]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue