aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-12-13 18:01:35 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-12-13 18:01:35 +0800
commitdfd96e51c36f30a633ca9deb7be51628d85ac056 (patch)
tree589b5588af795b6a191c4d0dcbd846b5eb173134 /test
parentf4a140d4bd7d0a7c2d39c7c266bf2a596f7df49c (diff)
downloadadvent-of-code-dfd96e51c36f30a633ca9deb7be51628d85ac056.tar.gz
advent-of-code-dfd96e51c36f30a633ca9deb7be51628d85ac056.zip
2022 day12 bfs
Diffstat (limited to 'test')
-rw-r--r--test/test_2022.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/test/test_2022.cpp b/test/test_2022.cpp
index 933b003..2d51612 100644
--- a/test/test_2022.cpp
+++ b/test/test_2022.cpp
@@ -10,6 +10,7 @@
#include "2022/day10/aoc.h"
#include "2022/day11/aoc.h"
#include "2022/day12/aoc.h"
+#include "2022/day13/aoc.h"
#include "catch.hpp"
#include <stdio.h>
#include <string.h>
@@ -93,9 +94,16 @@ TEST_CASE("Monkey in the Middle", "[2022]") {
REQUIRE(27267163742 == p.second);
}
-TEST_CASE("Hill Climbing Algorithm", "[2022]") {
- line_view lv = load_file("../src/2022/day12/input");
- auto p = aoc2022::day12(lv);
+// TEST_CASE("Hill Climbing Algorithm", "[2022]") {
+// line_view lv = load_file("../src/2022/day12/input");
+// auto p = aoc2022::day12(lv);
+// REQUIRE(0 == p.first);
+// REQUIRE(0 == p.second);
+// }
+
+TEST_CASE("Distress Signal", "[2022]") {
+ line_view lv = load_file("../src/2022/day13/input");
+ auto p = aoc2022::day13(lv);
REQUIRE(0 == p.first);
REQUIRE(0 == p.second);
}