Add solution for "Day 22: Monkey Market", part 1

This commit is contained in:
2025-06-10 19:46:06 +02:00
parent 83c66682ef
commit f025896e84
4 changed files with 99 additions and 0 deletions

View File

@@ -39,6 +39,7 @@
#include <aoc/LinenLayout.hpp>
#include <aoc/RaceCondition.hpp>
#include <aoc/KeypadConundrum.hpp>
#include <aoc/MonkeyMarket.hpp>
#include <aoc/LanParty.hpp>
#define REQUIRE_MESSAGE(cond, msg) if (!(cond)) { INFO(msg); REQUIRE(cond); }
@@ -383,6 +384,19 @@ TEST_CASE("[KeypadConundrumTests]")
}
}
TEST_CASE("[MonkeyMarketTests]")
{
TestContext test;
SECTION("FullData")
{
test.runFull(std::make_unique<MonkeyMarket>(), 19854248602, 0);
}
SECTION("ExampleData")
{
test.runExample(std::make_unique<MonkeyMarket>(), 37327623, 0);
}
}
TEST_CASE("[LanPartyTests]")
{
TestContext test;