From 7f6a4af994e51c7b232bcd5065a5a4faad9db31f Mon Sep 17 00:00:00 2001 From: alexo Date: Wed, 27 Dec 2023 23:23:43 +1100 Subject: [PATCH] day12: coverage --- day12/day12.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day12/day12.py b/day12/day12.py index 7831520..30c1830 100644 --- a/day12/day12.py +++ b/day12/day12.py @@ -95,7 +95,7 @@ def calculate_recursive(self, state: State) -> int: result += self.calculate_recursive(dot_state) return self.set_and_return(state, result) - return self.set_and_return(state, 0) + raise AssertionError("First char not in `.#?` and list not empty") def get_input(path: str) -> list[SpringLine]: