aboutsummaryrefslogtreecommitdiff
path: root/test/test_2015.cpp
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-03-15 11:15:02 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-03-15 11:15:02 +0800
commit1a768c1b8d69986c1cafcf5ead8a1f0424cefcbe (patch)
treee64e58553a1bb5ef6f502f6972efbb5efbd51389 /test/test_2015.cpp
parent869443933e5686433ef92fbcad7cd377017651b2 (diff)
downloadadvent-of-code-1a768c1b8d69986c1cafcf5ead8a1f0424cefcbe.tar.gz
advent-of-code-1a768c1b8d69986c1cafcf5ead8a1f0424cefcbe.zip
day2 part2
Diffstat (limited to 'test/test_2015.cpp')
-rw-r--r--test/test_2015.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_2015.cpp b/test/test_2015.cpp
index 84ddcbe..32ab803 100644
--- a/test/test_2015.cpp
+++ b/test/test_2015.cpp
@@ -22,5 +22,7 @@ TEST_CASE("parse box", "[day2]") {
TEST_CASE("I Was Told There Would Be No Math", "[day2]") {
line_view lv = load_file("../src/2015/day2/input");
- printf("%d\n", aoc2015::day2(lv));
+ auto p = aoc2015::day2(lv);
+ REQUIRE(p.first == 1586300);
+ REQUIRE(p.second == 3737498);
}