Add solution for "Day 14: Restroom Redoubt", part 1

This commit is contained in:
2025-02-19 14:15:34 +01:00
parent 449e33d2a3
commit a75535bab7
4 changed files with 146 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
#include <aoc/PlutonianPebbles.hpp>
#include <aoc/GardenGroups.hpp>
#include <aoc/ClawContraption.hpp>
#include <aoc/RestroomRedoubt.hpp>
#include <aoc/LanParty.hpp>
#define REQUIRE_MESSAGE(cond, msg) if (!(cond)) { INFO(msg); REQUIRE(cond); }
@@ -220,6 +221,19 @@ TEST_CASE("[ClawContraptionTests]")
}
}
TEST_CASE("[RestroomRedoubtTests]")
{
TestContext test;
SECTION("FullData")
{
test.run(std::make_unique<RestroomRedoubt>(), 224969976, 0, test.getInputPaths());
}
SECTION("ExampleData")
{
test.run(std::make_unique<RestroomRedoubt>(11, 7), 12, 0, test.getExampleInputPaths());
}
}
TEST_CASE("[LanPartyTests]")
{
TestContext test;