Add solution for "Day 21: Keypad Conundrum", part 1

This commit is contained in:
2025-06-05 23:31:30 +02:00
parent c67bb9054a
commit 60798118ea
6 changed files with 212 additions and 0 deletions

View File

@@ -38,6 +38,7 @@
#include <aoc/RamRun.hpp>
#include <aoc/LinenLayout.hpp>
#include <aoc/RaceCondition.hpp>
#include <aoc/KeypadConundrum.hpp>
#include <aoc/LanParty.hpp>
#define REQUIRE_MESSAGE(cond, msg) if (!(cond)) { INFO(msg); REQUIRE(cond); }
@@ -369,6 +370,19 @@ TEST_CASE("[RaceConditionTests]")
}
}
TEST_CASE("[KeypadConundrumTests]")
{
TestContext test;
SECTION("FullData")
{
test.runFull(std::make_unique<KeypadConundrum>(), 136780, 0);
}
SECTION("ExampleData")
{
test.runExample(std::make_unique<KeypadConundrum>(), 126384, 0);
}
}
TEST_CASE("[LanPartyTests]")
{
TestContext test;