finish day 3
This commit is contained in:
3
day1.cpp
3
day1.cpp
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user