Add solution for "Day 21: Keypad Conundrum", part 1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user