Add solution for "Day 15: Warehouse Woes", part 1

This commit is contained in:
2025-03-04 12:06:16 +01:00
parent 8d75bdfbef
commit 02af288ebc
6 changed files with 191 additions and 0 deletions

View File

@@ -32,6 +32,7 @@
#include <aoc/GardenGroups.hpp>
#include <aoc/ClawContraption.hpp>
#include <aoc/RestroomRedoubt.hpp>
#include <aoc/WarehouseWoes.hpp>
#include <aoc/LanParty.hpp>
#define REQUIRE_MESSAGE(cond, msg) if (!(cond)) { INFO(msg); REQUIRE(cond); }
@@ -234,6 +235,23 @@ TEST_CASE("[RestroomRedoubtTests]")
}
}
TEST_CASE("[WarehouseWoesTests]")
{
TestContext test;
SECTION("FullData")
{
test.run(std::make_unique<WarehouseWoes>(), 1515788, 0, test.getInputPaths());
}
SECTION("ExampleData")
{
test.run(std::make_unique<WarehouseWoes>(), 10092, 0, test.getExampleInputPaths());
}
SECTION("ExampleData2")
{
test.run(std::make_unique<WarehouseWoes>(2), 2028, 0, test.getExampleInputPaths());
}
}
TEST_CASE("[LanPartyTests]")
{
TestContext test;