AOCDay.is_test() returns a bool, True if the solution for the current part/input_file is known; else False

This commit is contained in:
Stefan Harmuth 2023-12-16 12:04:11 +01:00
parent f0e499f0a3
commit 2bec56eb1c

View File

@ -35,6 +35,9 @@ class AOCDay:
def part2(self) -> Any:
raise NotImplementedError()
def is_test(self) -> bool:
return self._current_test_solution is not None
def run_part(
self,
part: int,