diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-12-13 21:04:32 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-12-13 21:04:32 +0800 |
commit | a479c998f681f19bc0ae9252e74168bb7060aacd (patch) | |
tree | 6eaf3ca819af6462aa48872c08246728fe746a7c /test/test_2022.cpp | |
parent | dfd96e51c36f30a633ca9deb7be51628d85ac056 (diff) | |
download | advent-of-code-a479c998f681f19bc0ae9252e74168bb7060aacd.tar.gz advent-of-code-a479c998f681f19bc0ae9252e74168bb7060aacd.zip |
2022 day12 part1
Diffstat (limited to 'test/test_2022.cpp')
-rw-r--r-- | test/test_2022.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_2022.cpp b/test/test_2022.cpp index 2d51612..5298fb3 100644 --- a/test/test_2022.cpp +++ b/test/test_2022.cpp @@ -94,12 +94,12 @@ TEST_CASE("Monkey in the Middle", "[2022]") { REQUIRE(27267163742 == p.second); } -// TEST_CASE("Hill Climbing Algorithm", "[2022]") { -// line_view lv = load_file("../src/2022/day12/input"); -// auto p = aoc2022::day12(lv); -// REQUIRE(0 == p.first); -// REQUIRE(0 == p.second); -// } +TEST_CASE("Hill Climbing Algorithm", "[2022]") { + line_view lv = load_file("../src/2022/day12/input"); + auto p = aoc2022::day12(lv); + REQUIRE(339 == p.first); + REQUIRE(0 == p.second); +} TEST_CASE("Distress Signal", "[2022]") { line_view lv = load_file("../src/2022/day13/input"); |