diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-12-07 15:50:24 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-12-07 15:50:24 +0800 |
commit | c5adb2f1ede041114bd380ddf2729c60234165a0 (patch) | |
tree | 8c351c14d7b83de1259dabcaa7e2b0fafee66a3c /test/test_2022.cpp | |
parent | 152c1b1d68c9b9805c25a6c35f702e1d8d78e126 (diff) | |
download | advent-of-code-c5adb2f1ede041114bd380ddf2729c60234165a0.tar.gz advent-of-code-c5adb2f1ede041114bd380ddf2729c60234165a0.zip |
2022 day8 setup
Diffstat (limited to 'test/test_2022.cpp')
-rw-r--r-- | test/test_2022.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_2022.cpp b/test/test_2022.cpp index 1fed566..cbea8e9 100644 --- a/test/test_2022.cpp +++ b/test/test_2022.cpp @@ -5,6 +5,7 @@ #include "2022/day5/aoc.h" #include "2022/day6/aoc.h" #include "2022/day7/aoc.h" +#include "2022/day8/aoc.h" #include "catch.hpp" #include <stdio.h> #include <string.h> @@ -59,3 +60,10 @@ TEST_CASE("No Space Left On Device", "[2022]") { REQUIRE(2031851 == p.first); REQUIRE(2568781 == p.second); } + +TEST_CASE("", "[2022]") { + line_view lv = load_file("../src/2022/day8/input"); + auto p = aoc2022::day8(lv); + REQUIRE(0 == p.first); + REQUIRE(0 == p.second); +} |