Skip to content

Commit ad4578f

Browse files
committed
Add 2024 day 16 part 2 test with multi-predecessor target
1 parent ea33062 commit ad4578f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/scala/eu/sim642/adventofcode2024/Day16Test.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ object Day16Test {
6868
assert(bestPathTiles(parseGrid(exampleInput2)) == 64)
6969
}
7070

71+
test("Part 2 target with multiple predecessors") {
72+
assert(bestPathTiles(parseGrid(
73+
"""#####
74+
|#...#
75+
|#S#E#
76+
|#...#
77+
|#####
78+
|""".stripMargin)) == 8)
79+
}
80+
7181
test("Part 2 input answer") {
7282
assert(bestPathTiles(parseGrid(input)) == 449)
7383
}

0 commit comments

Comments
 (0)