From 2bec56eb1ca01c13f68ef1e3cb2e55da9bc3b70e Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Sat, 16 Dec 2023 12:04:11 +0100 Subject: [PATCH] AOCDay.is_test() returns a bool, True if the solution for the current part/input_file is known; else False --- src/tools/aoc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/aoc.py b/src/tools/aoc.py index e4e1224..b3a640a 100644 --- a/src/tools/aoc.py +++ b/src/tools/aoc.py @@ -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,