aboutsummaryrefslogtreecommitdiff
path: root/test/test_2022.cpp
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-12-06 22:06:00 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-12-06 22:06:00 +0800
commit3703e1e4aff85020af522e748d8b5e5feb33679f (patch)
tree40de4ef6e574405fba508df4089e55b2718d8c36 /test/test_2022.cpp
parentd3549d2056fe9b78fc786533c4b8f8be839e7770 (diff)
downloadadvent-of-code-3703e1e4aff85020af522e748d8b5e5feb33679f.tar.gz
advent-of-code-3703e1e4aff85020af522e748d8b5e5feb33679f.zip
2022 day7 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 cdc7275..fd88209 100644
--- a/test/test_2022.cpp
+++ b/test/test_2022.cpp
@@ -4,6 +4,7 @@
#include "2022/day4/aoc.h"
#include "2022/day5/aoc.h"
#include "2022/day6/aoc.h"
+#include "2022/day7/aoc.h"
#include "catch.hpp"
#include <stdio.h>
#include <string.h>
@@ -51,3 +52,10 @@ TEST_CASE("Tuning Trouble", "[2022]") {
REQUIRE(1623 == p.first);
REQUIRE(3774 == p.second);
}
+
+TEST_CASE("", "[2022]") {
+ line_view lv = load_file("../src/2022/day7/input");
+ auto p = aoc2022::day7(lv);
+ REQUIRE(0 == p.first);
+ REQUIRE(0 == p.second);
+}