Add solution for "Day 11: Plutonian Pebbles", part 1

This commit is contained in:
2025-01-21 14:07:38 +01:00
parent 7bca5d29d0
commit eaee3bd347
4 changed files with 197 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
// Solutions to the Advent Of Code 2024.
// Copyright (C) 2024 Stefan Müller
// Copyright (C) 2024-2025 Stefan Müller
//
// This program is free software: you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
@@ -22,6 +22,7 @@
#include <aoc/PrintQueue.hpp>
#include <aoc/GuardGallivant.hpp>
#include <aoc/HoofIt.hpp>
#include <aoc/PlutonianPebbles.hpp>
#include <aoc/LanParty.hpp>
#include <aocTests/TestContext.hpp>
@@ -118,6 +119,19 @@ TEST_CASE("[HoofItTests]")
}
}
TEST_CASE("[PlutonianPebblesTests]")
{
TestContext test;
SECTION("FullData")
{
test.run(std::make_unique<PlutonianPebbles>(), 220999, 0, test.getInputPaths());
}
SECTION("ExampleData")
{
test.run(std::make_unique<PlutonianPebbles>(), 55312, 0, test.getExampleInputPaths());
}
}
TEST_CASE("[LanPartyTests]")
{
TestContext test;