day 1 - part 2 - refactoring
This commit is contained in:
parent
5f492b3f66
commit
eac54767b5
10 changed files with 5 additions and 5 deletions
14
tests/aoc_2024/day1/test_part1.py
Normal file
14
tests/aoc_2024/day1/test_part1.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from pathlib import Path
|
||||
|
||||
from aoc_2024.day1 import part1
|
||||
|
||||
|
||||
def test_compute_distance():
|
||||
list1 = [1, 2, 3, 3, 3, 4]
|
||||
list2 = [3, 3, 3, 4, 5, 9]
|
||||
assert part1.compute_distance(list1, list2) == 11
|
||||
|
||||
|
||||
def test_main():
|
||||
test_file = Path(__file__).parent / "test-data"
|
||||
assert part1.main(test_file) == 11
|
Loading…
Add table
Add a link
Reference in a new issue