diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-12-03 23:19:42 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-12-03 23:19:42 +0800 |
commit | 283595b6f3b66f1ef84bb29cc44e03b22a3fde19 (patch) | |
tree | 6e90506344b6deeb2853a60d265185c87256ed25 /test/test_2022.cpp | |
parent | 5db1b89ab32e1d390f2a01cbbff339d456e69ea5 (diff) | |
download | advent-of-code-283595b6f3b66f1ef84bb29cc44e03b22a3fde19.tar.gz advent-of-code-283595b6f3b66f1ef84bb29cc44e03b22a3fde19.zip |
2022 day4 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 0c2de12..5629e2b 100644 --- a/test/test_2022.cpp +++ b/test/test_2022.cpp @@ -1,6 +1,7 @@ #include "2022/day1/aoc.h" #include "2022/day2/aoc.h" #include "2022/day3/aoc.h" +#include "2022/day4/aoc.h" #include "catch.hpp" #include <stdio.h> @@ -24,3 +25,10 @@ TEST_CASE("Rucksack Reorganization", "[2022]") { REQUIRE(8185 == p.first); REQUIRE(2817 == p.second); } + +TEST_CASE("", "[2022]") { + line_view lv = load_file("../src/2022/day4/input"); + auto p = aoc2022::day4(lv); + REQUIRE(0 == p.first); + REQUIRE(0 == p.second); +} |