Skip to content

Commit 75dcc8c

Browse files
committed
Day 12 tests
1 parent 3801559 commit 75dcc8c

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

tests/data/day12/test_01_input.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
RRRRIICCFF
2+
RRRRIICCCF
3+
VVRRRCCFFF
4+
VVRCCCJFFF
5+
VVVVCJJCFE
6+
VVIVCCJJEE
7+
VVIIICJJEE
8+
MIIIIIJJEE
9+
MIIISIJEEE
10+
MMMISSJEEE

tests/data/day12/test_02_input.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
RRRRIICCFF
2+
RRRRIICCCF
3+
VVRRRCCFFF
4+
VVRCCCJFFF
5+
VVVVCJJCFE
6+
VVIVCCJJEE
7+
VVIIICJJEE
8+
MIIIIIJJEE
9+
MIIISIJEEE
10+
MMMISSJEEE

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

0 commit comments

Comments
 (0)