Restructure tests

This commit is contained in:
2024-12-08 10:32:08 +01:00
parent dfee3d4e11
commit dcb0f4514d
12 changed files with 63 additions and 91 deletions

20
2024/tests/test_day04.py Normal file
View File

@@ -0,0 +1,20 @@
import pytest
from aoc.days.day4 import DayRunner
from . import get_data
@pytest.mark.parametrize(
"input,answer",
[
(get_data(4, 1), 4),
(get_data(4, 2), 18),
],
)
def test_sample_part1(input: str, answer: int) -> None:
assert DayRunner.part1(input) == answer
def test_sample_part2() -> None:
assert DayRunner.part2(get_data(4, 2)) == 9