aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-04-18 21:58:58 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-04-18 21:58:58 +0800
commit0ef81936a3d4925db0d1e809a946153b33e65343 (patch)
tree76f4feb25560b39211ebcf8e3120163007e40dd6 /test
parent62889a8bdaa1fa0cd5f9a412d8171f212b4e1368 (diff)
downloadadvent-of-code-0ef81936a3d4925db0d1e809a946153b33e65343.tar.gz
advent-of-code-0ef81936a3d4925db0d1e809a946153b33e65343.zip
2017 day7 part1
Diffstat (limited to 'test')
-rw-r--r--test/test_2017.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_2017.cpp b/test/test_2017.cpp
index 3230c9c..694899d 100644
--- a/test/test_2017.cpp
+++ b/test/test_2017.cpp
@@ -60,3 +60,10 @@ TEST_CASE("Memory Reallocation", "[2017]") {
REQUIRE(6681 == p.first);
REQUIRE(2392 == p.second);
}
+
+TEST_CASE("Recursive Circus", "[2017]") {
+ line_view lv = load_file("../src/2017/day7/input");
+ char x[10] = {0};
+ aoc2017::day7(lv, x);
+ REQUIRE(strcmp(x, "svugo") == 0);
+}