aboutsummaryrefslogtreecommitdiff
path: root/test/test_2022.cpp
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-12-11 17:41:18 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-12-11 17:41:18 +0800
commit1c3c2e3f8a72b7e2968f3583e8582333457e583a (patch)
tree46459a29d6e9db20e076d62c3a223000e7e7cb7b /test/test_2022.cpp
parent76dbb441216d24856594d930e0d2140a07231e8a (diff)
downloadadvent-of-code-1c3c2e3f8a72b7e2968f3583e8582333457e583a.tar.gz
advent-of-code-1c3c2e3f8a72b7e2968f3583e8582333457e583a.zip
2022 day11
Diffstat (limited to 'test/test_2022.cpp')
-rw-r--r--test/test_2022.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/test_2022.cpp b/test/test_2022.cpp
index 682497a..f44484d 100644
--- a/test/test_2022.cpp
+++ b/test/test_2022.cpp
@@ -9,6 +9,7 @@
#include "2022/day9/aoc.h"
#include "2022/day10/aoc.h"
#include "2022/day11/aoc.h"
+#include "2022/day12/aoc.h"
#include "catch.hpp"
#include <stdio.h>
#include <string.h>
@@ -85,9 +86,16 @@ TEST_CASE("Cathode-Ray Tube", "[2022]") {
REQUIRE(0 == p.second);
}
-TEST_CASE("", "[2022]") {
+TEST_CASE("Monkey in the Middle", "[2022]") {
line_view lv = load_file("../src/2022/day11/input");
auto p = aoc2022::day11(lv);
+ REQUIRE(107822 == p.first);
+ REQUIRE(27267163742 == p.second);
+}
+
+TEST_CASE("", "[2022]") {
+ line_view lv = load_file("../src/2022/day12/input");
+ auto p = aoc2022::day12(lv);
REQUIRE(0 == p.first);
REQUIRE(0 == p.second);
}