diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-04-19 16:13:55 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-04-19 16:13:55 +0800 |
commit | 48c40701db5a52fe7b80bc6eecca08c1447412b5 (patch) | |
tree | a7e388d6f57ee3167ca6f37f0698a772e85d994a /test | |
parent | 70f20b9317a11f443d01b4863969857173c63f14 (diff) | |
download | advent-of-code-48c40701db5a52fe7b80bc6eecca08c1447412b5.tar.gz advent-of-code-48c40701db5a52fe7b80bc6eecca08c1447412b5.zip |
2018 day7 part1
Diffstat (limited to 'test')
-rw-r--r-- | test/test_2018.cpp | 8 |
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); +} |