aboutsummaryrefslogtreecommitdiff
path: root/test/test_2017.cpp
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-04-10 15:48:40 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-04-10 15:48:40 +0800
commit7518edc86fc1d77e09a624c97e71e2c7d877b54d (patch)
tree0f429a243dce549175f21cc628e4bfc1818641ec /test/test_2017.cpp
parentfd91857910e637f6d813a19b745df7808b9b25af (diff)
downloadadvent-of-code-7518edc86fc1d77e09a624c97e71e2c7d877b54d.tar.gz
advent-of-code-7518edc86fc1d77e09a624c97e71e2c7d877b54d.zip
2017 day5
Diffstat (limited to 'test/test_2017.cpp')
-rw-r--r--test/test_2017.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_2017.cpp b/test/test_2017.cpp
index a201aed..104270e 100644
--- a/test/test_2017.cpp
+++ b/test/test_2017.cpp
@@ -42,3 +42,9 @@ TEST_CASE("High-Entropy Passphrases", "[2017]") {
REQUIRE(386 == p.first);
REQUIRE(208 == p.second);
}
+
+TEST_CASE("A Maze of Twisty Trampolines, All Alike", "[2017]") {
+ line_view lv = load_file("../src/2017/day5/input");
+ // line_view lv = load_file("../src/2017/day5/input0");
+ REQUIRE(360603 == aoc2017::day5(lv));
+}