Add solution for "Day 16: Reindeer Maze", part 1

This commit is contained in:
2025-04-30 19:40:36 +02:00
parent a819caba8b
commit 08a94ba068
11 changed files with 603 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
#include <aoc/ClawContraption.hpp>
#include <aoc/RestroomRedoubt.hpp>
#include <aoc/WarehouseWoes.hpp>
#include <aoc/ReindeerMaze.hpp>
#include <aoc/LanParty.hpp>
#define REQUIRE_MESSAGE(cond, msg) if (!(cond)) { INFO(msg); REQUIRE(cond); }
@@ -252,6 +253,23 @@ TEST_CASE("[WarehouseWoesTests]")
}
}
TEST_CASE("[ReindeerMazeTests]")
{
TestContext test;
SECTION("FullData")
{
test.run(std::make_unique<ReindeerMaze>(), 72400, 0, test.getInputPaths());
}
SECTION("ExampleData")
{
test.run(std::make_unique<ReindeerMaze>(), 7036, 0, test.getExampleInputPaths());
}
SECTION("ExampleData2")
{
test.run(std::make_unique<ReindeerMaze>(2), 11048, 0, test.getExampleInputPaths());
}
}
TEST_CASE("[LanPartyTests]")
{
TestContext test;