aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_2021.cpp1
-rw-r--r--test/test_2022.cpp8
2 files changed, 9 insertions, 0 deletions
diff --git a/test/test_2021.cpp b/test/test_2021.cpp
index 1618b89..e92b2c3 100644
--- a/test/test_2021.cpp
+++ b/test/test_2021.cpp
@@ -75,4 +75,5 @@ TEST_CASE("Smoke Basin", "[2021]") {
line_view lv = load_file("../src/2021/day9/input");
auto p = aoc2021::day9(lv);
REQUIRE(580 == p.first);
+ REQUIRE(856716 == p.second);
}
diff --git a/test/test_2022.cpp b/test/test_2022.cpp
index d93f690..3dfa704 100644
--- a/test/test_2022.cpp
+++ b/test/test_2022.cpp
@@ -2,6 +2,7 @@
#include "2022/day2/aoc.h"
#include "2022/day3/aoc.h"
#include "2022/day4/aoc.h"
+#include "2022/day5/aoc.h"
#include "catch.hpp"
#include <stdio.h>
@@ -32,3 +33,10 @@ TEST_CASE("Camp Cleanup", "[2022]") {
REQUIRE(431 == p.first);
REQUIRE(823 == p.second);
}
+
+TEST_CASE("", "[2022]") {
+ line_view lv = load_file("../src/2022/day5/input");
+ auto p = aoc2022::day5(lv);
+ REQUIRE(0 == p.first);
+ REQUIRE(0 == p.second);
+}