Implement 2024 day 15

This commit is contained in:
2024-12-15 14:05:31 +01:00
parent 98983f622c
commit e90ee40880
5 changed files with 234 additions and 0 deletions

27
2024/tests/test_day15.py Normal file
View File

@@ -0,0 +1,27 @@
import pytest
from aoc.days.day15 import DayRunner
from . import get_data
@pytest.mark.parametrize(
"data,result",
[
(get_data(15, 1), 10092),
(get_data(15, 2), 2028),
],
)
def test_sample_part1(data: str, result: int) -> None:
assert DayRunner.part1(data) == result
@pytest.mark.parametrize(
"data,result",
[
(get_data(15, 1), 9021),
(get_data(15, 3), 618),
],
)
def test_sample_part2(data: str, result: int) -> None:
assert DayRunner.part2(data) == result