Skip to content

Commit d269858

Browse files
committed
Day 17 tests
1 parent 465da74 commit d269858

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

tests/data/day17/test_01_input.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Register A: 729
2+
Register B: 0
3+
Register C: 0
4+
5+
Program: 0,1,5,4,3,0

tests/data/day17/test_02_input.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Register A: 2024
2+
Register B: 0
3+
Register C: 0
4+
5+
Program: 0,3,5,4,3,0

tests/test_17.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_day17_part1():
5+
TestSolutionUtility.run_test(
6+
day=17,
7+
is_raw=False,
8+
part_num=1,
9+
expected="4,6,3,5,6,3,5,2,1,0",
10+
)
11+
12+
13+
def test_day17_part2():
14+
TestSolutionUtility.run_test(
15+
day=17,
16+
is_raw=False,
17+
part_num=2,
18+
expected=117440,
19+
)

0 commit comments

Comments
 (0)