Skip to content

Commit 40dd2d2

Browse files
committed
Day 18 tests
1 parent 74080c7 commit 40dd2d2

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

tests/data/day18/test_01_input.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
5,4
2+
4,2
3+
4,5
4+
3,0
5+
2,1
6+
6,3
7+
2,4
8+
1,5
9+
0,6
10+
3,3
11+
2,6
12+
5,1
13+
1,2
14+
5,5
15+
2,5
16+
6,5
17+
1,4
18+
0,4
19+
6,4
20+
1,1
21+
6,1
22+
1,0
23+
0,5
24+
1,6
25+
2,0

tests/data/day18/test_02_input.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
5,4
2+
4,2
3+
4,5
4+
3,0
5+
2,1
6+
6,3
7+
2,4
8+
1,5
9+
0,6
10+
3,3
11+
2,6
12+
5,1
13+
1,2
14+
5,5
15+
2,5
16+
6,5
17+
1,4
18+
0,4
19+
6,4
20+
1,1
21+
6,1
22+
1,0
23+
0,5
24+
1,6
25+
2,0

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

0 commit comments

Comments
 (0)