Add solution for "Day 8: Resonant Collinearity", part 1

This commit is contained in:
2025-01-29 22:04:12 +01:00
parent c4b2684d66
commit 44f2a0e0ec
6 changed files with 132 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
#include <aoc/PrintQueue.hpp>
#include <aoc/GuardGallivant.hpp>
#include <aoc/BridgeRepair.hpp>
#include <aoc/ResonantCollinearity.hpp>
#include <aoc/HoofIt.hpp>
#include <aoc/PlutonianPebbles.hpp>
#include <aoc/LanParty.hpp>
@@ -120,6 +121,19 @@ TEST_CASE("[BridgeRepairTests]")
}
}
TEST_CASE("[ResonantCollinearityTests]")
{
TestContext test;
SECTION("FullData")
{
test.run(std::make_unique<ResonantCollinearity>(), 426, 0, test.getInputPaths());
}
SECTION("ExampleData")
{
test.run(std::make_unique<ResonantCollinearity>(), 14, 0, test.getExampleInputPaths());
}
}
TEST_CASE("[HoofItTests]")
{
TestContext test;