diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-12-14 13:40:33 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-12-14 13:40:33 +0800 |
commit | 0be5a28f1373448194c1266ec33a7e5860e806d9 (patch) | |
tree | e909378019f78a72a53ca391835ab1b503f9be3e /test/test_2022.cpp | |
parent | f46ace5333e19e56e0024fef94c732b8129ef9f3 (diff) | |
download | advent-of-code-0be5a28f1373448194c1266ec33a7e5860e806d9.tar.gz advent-of-code-0be5a28f1373448194c1266ec33a7e5860e806d9.zip |
2022 day14 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 0a15d0f..b793acd 100644 --- a/test/test_2022.cpp +++ b/test/test_2022.cpp @@ -11,6 +11,7 @@ #include "2022/day11/aoc.h" #include "2022/day12/aoc.h" #include "2022/day13/aoc.h" +#include "2022/day14/aoc.h" #include "catch.hpp" #include <stdio.h> #include <string.h> @@ -104,6 +105,13 @@ TEST_CASE("Hill Climbing Algorithm", "[2022]") { TEST_CASE("Distress Signal", "[2022]") { line_view lv = load_file("../src/2022/day13/input"); auto p = aoc2022::day13(lv); + REQUIRE(5003 == p.first); + // REQUIRE(0 == p.second); +} + +TEST_CASE("Regolith Reservoir", "[2022]") { + line_view lv = load_file("../src/2022/day14/input"); + auto p = aoc2022::day14(lv); REQUIRE(0 == p.first); REQUIRE(0 == p.second); } |