Add solution for "Day 23: LAN Party", part 1

This commit is contained in:
2024-12-25 21:06:41 +01:00
parent e0a9a807da
commit c783d20755
8 changed files with 283 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
#include <aoc/PrintQueue.hpp>
#include <aoc/GuardGallivant.hpp>
#include <aoc/HoofIt.hpp>
#include <aoc/LanParty.hpp>
#include <aocTests/TestContext.hpp>
#define REQUIRE_MESSAGE(cond, msg) if (!(cond)) { INFO(msg); REQUIRE(cond); }
@@ -116,3 +117,16 @@ TEST_CASE("[HoofItTests]")
test.run(std::make_unique<HoofIt>(), 36, 81, test.getExampleInputPaths());
}
}
TEST_CASE("[LanPartyTests]")
{
TestContext test;
SECTION("FullData")
{
test.run(std::make_unique<LanParty>(), 1230, 0, test.getInputPaths());
}
SECTION("ExampleData")
{
test.run(std::make_unique<LanParty>(), 7, 0, test.getExampleInputPaths());
}
}