Add solution for "Day 19: Linen Layout", part 1

This commit is contained in:
2025-06-01 23:00:16 +02:00
parent f8f431b61a
commit 12fdc184cf
6 changed files with 239 additions and 0 deletions

View File

@@ -36,6 +36,7 @@
#include <aoc/ReindeerMaze.hpp>
#include <aoc/ChronospatialComputer.hpp>
#include <aoc/RamRun.hpp>
#include <aoc/LinenLayout.hpp>
#include <aoc/LanParty.hpp>
#define REQUIRE_MESSAGE(cond, msg) if (!(cond)) { INFO(msg); REQUIRE(cond); }
@@ -340,6 +341,19 @@ TEST_CASE("[RamRunTests]")
}
}
TEST_CASE("[LinenLayoutTests]")
{
TestContext test;
SECTION("FullData")
{
test.run(std::make_unique<LinenLayout>(), 272, 0, test.getInputPaths());
}
SECTION("ExampleData")
{
test.run(std::make_unique<LinenLayout>(), 6, 0, test.getExampleInputPaths());
}
}
TEST_CASE("[LanPartyTests]")
{
TestContext test;