Files
pyAOC/tests/2015/test_day2.py
T
2026-10-01 22:11:11 -04:00

24 lines
561 B
Python

import pytest
import solution.ev2015 as solution
@pytest.fixture(scope="session")
def test_data_1() -> list[str]:
return ["2x3x4", "1x1x10"]
@pytest.fixture(scope="session")
def test_data_2() -> list[str]:
return [")", "()())"]
def test_day1_part1(test_data_1):
assert solution.day2(data=[test_data_1[0]], part=1) == 58
assert solution.day2(data=[test_data_1[1]], part=1) == 43
# def test_day1_part2(test_data_2):
# assert solution.day1(data=test_data_2[0], part=2) == 1
# assert solution.day1(data=test_data_2[1], part=2) == 5