aboutsummaryrefslogtreecommitdiff
path: root/test/test_2021.cpp
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-12-02 16:37:33 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-12-02 16:37:33 +0800
commitc3e81e84ff4295ae5fb62439b00a02d9ad3db0b0 (patch)
tree32727f7ba138abcf62fe68a52d34cd5e7c36f995 /test/test_2021.cpp
parent3cf49cbcf2ba2ea24571c0c5ebbd4094aba17e0b (diff)
downloadadvent-of-code-c3e81e84ff4295ae5fb62439b00a02d9ad3db0b0.tar.gz
advent-of-code-c3e81e84ff4295ae5fb62439b00a02d9ad3db0b0.zip
2021 day9
Diffstat (limited to 'test/test_2021.cpp')
-rw-r--r--test/test_2021.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_2021.cpp b/test/test_2021.cpp
index 943883a..1618b89 100644
--- a/test/test_2021.cpp
+++ b/test/test_2021.cpp
@@ -70,3 +70,9 @@ TEST_CASE("Seven Segment Search", "[2021]") {
REQUIRE(519 == p.first);
REQUIRE(1027483 == p.second);
}
+
+TEST_CASE("Smoke Basin", "[2021]") {
+ line_view lv = load_file("../src/2021/day9/input");
+ auto p = aoc2021::day9(lv);
+ REQUIRE(580 == p.first);
+}