Skip to content

Commit 737c1b0

Browse files
committed
Day 21 tests
1 parent 53b9e48 commit 737c1b0

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

tests/data/day21/test_01_input.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
029A
2+
980A
3+
179A
4+
456A
5+
379A

tests/data/day21/test_02_input.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
029A
2+
980A
3+
179A
4+
456A
5+
379A

tests/test_21.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from aoc.models.tester import TestSolutionUtility
2+
3+
4+
def test_day21_part1():
5+
TestSolutionUtility.run_test(
6+
day=21,
7+
is_raw=False,
8+
part_num=1,
9+
expected=126384,
10+
)
11+
12+
13+
def test_day21_part2():
14+
TestSolutionUtility.run_test(
15+
day=21,
16+
is_raw=False,
17+
part_num=2,
18+
expected=154115708116294,
19+
)

0 commit comments

Comments
 (0)