Add solution for "Day 23: LAN Party", part 1
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user