aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-04-19 16:13:55 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-04-19 16:13:55 +0800
commit48c40701db5a52fe7b80bc6eecca08c1447412b5 (patch)
treea7e388d6f57ee3167ca6f37f0698a772e85d994a /test
parent70f20b9317a11f443d01b4863969857173c63f14 (diff)
downloadadvent-of-code-48c40701db5a52fe7b80bc6eecca08c1447412b5.tar.gz
advent-of-code-48c40701db5a52fe7b80bc6eecca08c1447412b5.zip
2018 day7 part1
Diffstat (limited to 'test')
-rw-r--r--test/test_2018.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_2018.cpp b/test/test_2018.cpp
index c4dba34..d41cac0 100644
--- a/test/test_2018.cpp
+++ b/test/test_2018.cpp
@@ -53,3 +53,11 @@ TEST_CASE("Chronal Coordinates", "[2018]") {
REQUIRE(3260 == p.first);
REQUIRE(42535 == p.second);
}
+
+TEST_CASE("The Sum of Its Parts", "[2018]") {
+ // line_view lv = load_file("../src/2018/day7/input0");
+ line_view lv = load_file("../src/2018/day7/input");
+ char sequence[100] = {0};
+ aoc2018::day7(lv, sequence);
+ printf("%s\n", sequence);
+}