Add day 1 & 2 solutions
This commit is contained in:
1 parent
92c1d61e43
commit
3492966a80
3 files changed
+1025
No files matched your search
@@ -0,0 +1,23 @@
|
||||
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
|
||||
Reference in new issue
Block a user