finish day 3

This commit is contained in:
2025-12-03 15:32:55 -05:00
parent 05a5bc27ad
commit debf18936b
5 changed files with 289 additions and 1 deletions

View File

@@ -93,6 +93,7 @@ uint32_t solve_first(const std::string &input) {
return spins;
}
TEST_SUITE_BEGIN("Day 1");
TEST_CASE("puzzle 1") {
CHECK(solve_first(sample) == 3);
std::ifstream input("day1input.txt");
@@ -127,3 +128,5 @@ TEST_CASE("puzzle 2") {
buffer << input.rdbuf();
CHECK(solve_second(buffer.str()) == 6860);
}
TEST_SUITE_END();