Implement 2024 day 21 part 2

Invent a unit test for it too, because why not, it's Christmas
This commit is contained in:
2024-12-26 16:43:15 +01:00
parent 40632c8114
commit b23676bf04
2 changed files with 33 additions and 2 deletions

View File

@@ -49,3 +49,7 @@ def test_encode_shortest_dirpad_twice(code: str, answer: str) -> None:
def test_sample_part1() -> None:
assert DayRunner.part1(get_data(21)) == 126384
def test_sample_part2() -> None:
assert DayRunner.part2(get_data(21), robots=2) == 126384