Skip to content

Commit

Permalink
Add tests for real solution of day 1
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Dec 1, 2023
1 parent 008d225 commit 7b11d2c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 2023/solvelib/01/day01_test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ TEST_CASE("Day 1") {
solution.load("./data/01/example3.txt");
REQUIRE_EQ(solution.part2(), 33);
}

SUBCASE("Real data") {
solution.load("./data/01/input.txt");
REQUIRE_EQ(solution.part1(), 54561);
REQUIRE_EQ(solution.part2(), 54076);
}
}

0 comments on commit 7b11d2c

Please sign in to comment.