Add solution for "Day 20: Race Condition", part 1
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include <aoc/ChronospatialComputer.hpp>
|
||||
#include <aoc/RamRun.hpp>
|
||||
#include <aoc/LinenLayout.hpp>
|
||||
#include <aoc/RaceCondition.hpp>
|
||||
#include <aoc/LanParty.hpp>
|
||||
|
||||
#define REQUIRE_MESSAGE(cond, msg) if (!(cond)) { INFO(msg); REQUIRE(cond); }
|
||||
@@ -354,6 +355,19 @@ TEST_CASE("[LinenLayoutTests]")
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("[RaceConditionTests]")
|
||||
{
|
||||
TestContext test;
|
||||
SECTION("FullData")
|
||||
{
|
||||
test.runFull(std::make_unique<RaceCondition>(), 1448, 0);
|
||||
}
|
||||
SECTION("ExampleData")
|
||||
{
|
||||
test.runExample(std::make_unique<RaceCondition>(2), 44, 0);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("[LanPartyTests]")
|
||||
{
|
||||
TestContext test;
|
||||
|
||||
Reference in New Issue
Block a user