Skip to content

Commit 0243610

Browse files
committed
Day 20 tests
1 parent 4ded2fe commit 0243610

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

tests/data/day20/test_01_input.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
###############
2+
#...#...#.....#
3+
#.#.#.#.#.###.#
4+
#S#...#.#.#...#
5+
#######.#.#.###
6+
#######.#.#...#
7+
#######.#.###.#
8+
###..E#...#...#
9+
###.#######.###
10+
#...###...#...#
11+
#.#####.#.###.#
12+
#.#...#.#.#...#
13+
#.#.#.#.#.#.###
14+
#...#...#...###
15+
###############

tests/data/day20/test_02_input.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
###############
2+
#...#...#.....#
3+
#.#.#.#.#.###.#
4+
#S#...#.#.#...#
5+
#######.#.#.###
6+
#######.#.#...#
7+
#######.#.###.#
8+
###..E#...#...#
9+
###.#######.###
10+
#...###...#...#
11+
#.#####.#.###.#
12+
#.#...#.#.#...#
13+
#.#.#.#.#.#.###
14+
#...#...#...###
15+
###############

tests/test_20.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_day20_part1():
5+
TestSolutionUtility.run_test(
6+
day=20,
7+
is_raw=False,
8+
part_num=1,
9+
expected=44,
10+
)
11+
12+
13+
def test_day20_part2():
14+
TestSolutionUtility.run_test(
15+
day=20,
16+
is_raw=False,
17+
part_num=2,
18+
expected=3081,
19+
)

0 commit comments

Comments
 (0)