diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-04-08 10:58:59 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-04-08 10:58:59 +0800 |
commit | 5db7670bfa3a107718b05f4d652e0850347d16d8 (patch) | |
tree | e4631b8a814dd9d345e73c3569233b570c79f6bd /test/test_2017.cpp | |
parent | 83781c309420cd52c869190055cc47c971122eae (diff) | |
download | advent-of-code-5db7670bfa3a107718b05f4d652e0850347d16d8.tar.gz advent-of-code-5db7670bfa3a107718b05f4d652e0850347d16d8.zip |
2017 day4
Diffstat (limited to 'test/test_2017.cpp')
-rw-r--r-- | test/test_2017.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_2017.cpp b/test/test_2017.cpp index bb602ef..bdb76ed 100644 --- a/test/test_2017.cpp +++ b/test/test_2017.cpp @@ -34,3 +34,10 @@ TEST_CASE("Spiral Memory", "[2017]") { REQUIRE(430 == aoc2017::day3(312051)); REQUIRE(312453 == aoc2017::day3part2(312051)); } + +TEST_CASE("High-Entropy Passphrases", "[2017]") { + line_view lv = load_file("../src/2017/day4/input"); + auto p = aoc2017::day4(lv); + REQUIRE(386 == p.first); + REQUIRE(208 == p.second); +} |