Skip to content

Commit 8560d20

Browse files
committed
Day 22 tests
1 parent 1078911 commit 8560d20

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

tests/data/day22/test_01_input.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
1
2+
10
3+
100
4+
2024

tests/data/day22/test_02_input.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
1
2+
2
3+
3
4+
2024

tests/test_22.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_day22_part1():
5+
TestSolutionUtility.run_test(
6+
day=22,
7+
is_raw=False,
8+
part_num=1,
9+
expected=37327623,
10+
)
11+
12+
13+
def test_day22_part2():
14+
TestSolutionUtility.run_test(
15+
day=22,
16+
is_raw=False,
17+
part_num=2,
18+
expected=23,
19+
)

0 commit comments

Comments
 (0)