diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-05-14 17:17:04 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-05-14 17:17:04 +0800 |
commit | 1a9146ae65c309c1c4dafb57a08ffb25c632fa78 (patch) | |
tree | 25df8befca23799897ee0755f1be3e066db1f8ac /test | |
parent | 3063b07245326e11667d50eeed1eaa52b93b8f68 (diff) | |
download | advent-of-code-1a9146ae65c309c1c4dafb57a08ffb25c632fa78.tar.gz advent-of-code-1a9146ae65c309c1c4dafb57a08ffb25c632fa78.zip |
2020 day8 part1
Diffstat (limited to 'test')
-rw-r--r-- | test/test_2020.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_2020.cpp b/test/test_2020.cpp index b2359f1..8573cd7 100644 --- a/test/test_2020.cpp +++ b/test/test_2020.cpp @@ -57,3 +57,9 @@ TEST_CASE("Handy Haversacks", "[2020]") { REQUIRE(126 == p.first); REQUIRE(220149 == p.second); } + +TEST_CASE("Handheld Halting", "[2020]") { + line_view lv = load_file("../src/2020/day8/input"); + auto p = aoc2020::day8(lv); + REQUIRE(1814 == p); +} |