aboutsummaryrefslogtreecommitdiff
path: root/test/test_2022.cpp
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-12-08 14:27:46 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-12-08 14:27:46 +0800
commitb2004336e7a9971b969de0302cf58af2d08c052a (patch)
treea34bb524dc2fd2ee17cade10bbec749e383dbaa0 /test/test_2022.cpp
parentc3a3e3fe4f98931a1de9ea198119a1f0bf71a320 (diff)
downloadadvent-of-code-b2004336e7a9971b969de0302cf58af2d08c052a.tar.gz
advent-of-code-b2004336e7a9971b969de0302cf58af2d08c052a.zip
2022 day9 setup
Diffstat (limited to 'test/test_2022.cpp')
-rw-r--r--test/test_2022.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_2022.cpp b/test/test_2022.cpp
index 3950399..d1d2ec0 100644
--- a/test/test_2022.cpp
+++ b/test/test_2022.cpp
@@ -6,6 +6,7 @@
#include "2022/day6/aoc.h"
#include "2022/day7/aoc.h"
#include "2022/day8/aoc.h"
+#include "2022/day9/aoc.h"
#include "catch.hpp"
#include <stdio.h>
#include <string.h>
@@ -67,3 +68,10 @@ TEST_CASE("Treetop Tree House", "[2022]") {
REQUIRE(1546 == p.first);
REQUIRE(519064 == p.second);
}
+
+TEST_CASE("", "[2022]") {
+ line_view lv = load_file("../src/2022/day9/input");
+ auto p = aoc2022::day9(lv);
+ REQUIRE(0 == p.first);
+ REQUIRE(0 == p.second);
+}