Skip to content

Commit

Permalink
Merge pull request #65 from EduardGomezEscandell/day1-test
Browse files Browse the repository at this point in the history
Add tests for real solution of day 1
  • Loading branch information
EduardGomezEscandell authored Dec 1, 2023
2 parents 008d225 + 7b11d2c commit f2571c0
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 f2571c0

Please sign in to comment.