<gh_stars>0
import pytest

from src.day08 import solve_part1, solve_part2

day = "08"

@pytest.mark.parametrize("day", [day])
def test_part1(day, expected_value = 0): 
    testdata = {"key": "sample", "file": f"test/data/day{day}.sample.dat"}
    assert solve_part1(testdata) == expected_value

@pytest.mark.parametrize("day", [day])
def test_part1_big(day, expected_value = 26): 
    testdata = {"key": "sample", "file": f"test/data/day{day}.sample-big.dat"}
    assert solve_part1(testdata) == expected_value

@pytest.mark.parametrize("day", [day])
def test_part2(day, expected_value = 5353): 
    testdata = {"key": "sample", "file": f"test/data/day{day}.sample.dat"}
    assert solve_part2(testdata) == expected_value

@pytest.mark.parametrize("day", [day])
def test_part2_big(day, expected_value = 61229): 
    testdata = {"key": "sample", "file": f"test/data/day{day}.sample-big.dat"}
    assert solve_part2(testdata) == expected_value
import pytest

from src.day08 import solve_part1, solve_part2

day = "08"

@pytest.mark.parametrize("day", [day])
def test_part1(day, expected_value = 0): 
    testdata = {"key": "sample", "file": f"test/data/day{day}.sample.dat"}
    assert solve_part1(testdata) == expected_value

@pytest.mark.parametrize("day", [day])
def test_part1_big(day, expected_value = 26): 
    testdata = {"key": "sample", "file": f"test/data/day{day}.sample-big.dat"}
    assert solve_part1(testdata) == expected_value

@pytest.mark.parametrize("day", [day])
def test_part2(day, expected_value = 5353): 
    testdata = {"key": "sample", "file": f"test/data/day{day}.sample.dat"}
    assert solve_part2(testdata) == expected_value

@pytest.mark.parametrize("day", [day])
def test_part2_big(day, expected_value = 61229): 
    testdata = {"key": "sample", "file": f"test/data/day{day}.sample-big.dat"}
    assert solve_part2(testdata) == expected_value