Implement day 3 solver
This commit is contained in:
4
solve.py
4
solve.py
@@ -32,12 +32,12 @@ def main():
|
||||
try:
|
||||
print("Testing part 1 solution...")
|
||||
start = time()
|
||||
assert mod.solve_p1(mod.test_input) == mod.test_solution_p1
|
||||
assert mod.solve_p1(mod.test_input_p1) == mod.test_solution_p1
|
||||
print(f"Test passed in {time() - start:.3f} seconds")
|
||||
|
||||
print("Testing part 2 solution...")
|
||||
start = time()
|
||||
assert mod.solve_p2(mod.test_input) == mod.test_solution_p2
|
||||
assert mod.solve_p2(mod.test_input_p2) == mod.test_solution_p2
|
||||
print(f"Test passed in {time() - start:.3f} seconds")
|
||||
|
||||
except AssertionError:
|
||||
|
Reference in New Issue
Block a user