Add solution for "Day 13: Claw Contraption", part 1

This commit is contained in:
2025-02-18 15:01:11 +01:00
parent 5b15e36bc5
commit bd5df5d019
4 changed files with 153 additions and 0 deletions

View File

@@ -30,6 +30,7 @@
#include <aoc/HoofIt.hpp>
#include <aoc/PlutonianPebbles.hpp>
#include <aoc/GardenGroups.hpp>
#include <aoc/ClawContraption.hpp>
#include <aoc/LanParty.hpp>
#define REQUIRE_MESSAGE(cond, msg) if (!(cond)) { INFO(msg); REQUIRE(cond); }
@@ -206,6 +207,19 @@ TEST_CASE("[GardenGroupsTests]")
}
}
TEST_CASE("[ClawContraptionTests]")
{
TestContext test;
SECTION("FullData")
{
test.run(std::make_unique<ClawContraption>(), 36571, 0, test.getInputPaths());
}
SECTION("ExampleData")
{
test.run(std::make_unique<ClawContraption>(), 480, 0, test.getExampleInputPaths());
}
}
TEST_CASE("[LanPartyTests]")
{
TestContext test;