Adjust solvers to return integer

This commit is contained in:
Nettika
2023-12-16 16:44:55 -08:00
parent ffa9ebcf53
commit 54271e0a2c
7 changed files with 30 additions and 51 deletions

View File

@@ -107,15 +107,8 @@ mock_input = "\n".join(
def test_solve_pt_1():
assert solve_part_1(mock_input) == "8"
assert solve_part_1(mock_input) == 8
def test_solve_pt_2():
assert solve_part_2(mock_input) == "2286"
# def test_configuration_power():
# assert [
# _configuration_power(Game.parse(game_desc).minimum_configuration())
# for game_desc in mock_input
# ] == [48, 12, 1560, 630, 36]
assert solve_part_2(mock_input) == 2286

View File

@@ -91,8 +91,8 @@ def test_schematic_part_numbers():
def test_solve_part_1():
assert solve_part_1(mock_input) == "4361"
assert solve_part_1(mock_input) == 4361
def test_solve_part_2():
assert solve_part_2(mock_input) == "467835"
assert solve_part_2(mock_input) == 467835

View File

@@ -54,7 +54,7 @@ def test_solve_part_1():
]
)
)
== "142"
== 142
)
@@ -73,5 +73,5 @@ def test_solve_part_2():
]
)
)
== "281"
== 281
)