Add solution for "Day 18: RAM Run", part 1

This commit is contained in:
2025-05-22 18:28:47 +02:00
parent 99c31bc0ea
commit bb1dab33e9
5 changed files with 164 additions and 1 deletions

View File

@@ -35,6 +35,7 @@
#include <aoc/WarehouseWoes.hpp>
#include <aoc/ReindeerMaze.hpp>
#include <aoc/ChronospatialComputer.hpp>
#include <aoc/RamRun.hpp>
#include <aoc/LanParty.hpp>
#define REQUIRE_MESSAGE(cond, msg) if (!(cond)) { INFO(msg); REQUIRE(cond); }
@@ -326,6 +327,19 @@ TEST_CASE("[ChronospatialComputerTests]")
}
}
TEST_CASE("[RamRunTests]")
{
TestContext test;
SECTION("FullData")
{
test.run(std::make_unique<RamRun>(), 248, "", test.getInputPaths());
}
SECTION("ExampleData")
{
test.run(std::make_unique<RamRun>(7, 12), 22, "", test.getExampleInputPaths());
}
}
TEST_CASE("[LanPartyTests]")
{
TestContext test;