Skip to content

Commit da1166a

Browse files
committed
Day 23 tests
1 parent 4dd7f19 commit da1166a

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

tests/data/day23/test_01_input.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
kh-tc
2+
qp-kh
3+
de-cg
4+
ka-co
5+
yn-aq
6+
qp-ub
7+
cg-tb
8+
vc-aq
9+
tb-ka
10+
wh-tc
11+
yn-cg
12+
kh-ub
13+
ta-co
14+
de-co
15+
tc-td
16+
tb-wq
17+
wh-td
18+
ta-ka
19+
td-qp
20+
aq-cg
21+
wq-ub
22+
ub-vc
23+
de-ta
24+
wq-aq
25+
wq-vc
26+
wh-yn
27+
ka-de
28+
kh-ta
29+
co-tc
30+
wh-qp
31+
tb-vc
32+
td-yn

tests/data/day23/test_02_input.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ka-co
2+
ta-co
3+
de-co
4+
ta-ka
5+
de-ta
6+
ka-de

tests/test_23.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_day23_part1():
5+
TestSolutionUtility.run_test(
6+
day=23,
7+
is_raw=False,
8+
part_num=1,
9+
expected=7,
10+
)
11+
12+
13+
def test_day23_part2():
14+
TestSolutionUtility.run_test(
15+
day=23,
16+
is_raw=False,
17+
part_num=2,
18+
expected="co,de,ka,ta",
19+
)

0 commit comments

Comments
 (0)