From 7b11d2c7cd2ee5226556f57657fb6e516f903906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Fri, 1 Dec 2023 12:02:12 +0100 Subject: [PATCH] Add tests for real solution of day 1 --- 2023/solvelib/01/day01_test.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/2023/solvelib/01/day01_test.hpp b/2023/solvelib/01/day01_test.hpp index 6b060f3..4058532 100644 --- a/2023/solvelib/01/day01_test.hpp +++ b/2023/solvelib/01/day01_test.hpp @@ -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); + } } \ No newline at end of file