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

The Point2::operator<() was introduced for set<Point2>, which is not actually required.
This commit is contained in:
2025-02-04 17:43:20 +01:00
parent 44f2a0e0ec
commit e1cd0867cb
6 changed files with 55 additions and 22 deletions

View File

@@ -23,6 +23,7 @@
#include <aoc/GuardGallivant.hpp>
#include <aoc/BridgeRepair.hpp>
#include <aoc/ResonantCollinearity.hpp>
#include <aoc/DiskFragmenter.hpp>
#include <aoc/HoofIt.hpp>
#include <aoc/PlutonianPebbles.hpp>
#include <aoc/LanParty.hpp>
@@ -126,11 +127,11 @@ TEST_CASE("[ResonantCollinearityTests]")
TestContext test;
SECTION("FullData")
{
test.run(std::make_unique<ResonantCollinearity>(), 426, 0, test.getInputPaths());
test.run(std::make_unique<ResonantCollinearity>(), 426, 1359, test.getInputPaths());
}
SECTION("ExampleData")
{
test.run(std::make_unique<ResonantCollinearity>(), 14, 0, test.getExampleInputPaths());
test.run(std::make_unique<ResonantCollinearity>(), 14, 34, test.getExampleInputPaths());
}
}