diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-04-05 12:19:05 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-04-05 12:19:05 +0800 |
commit | 0742b596f9da460736d64a261312099b3e6483b3 (patch) | |
tree | aeff3ae9aa3e4314bf7973e0c95d6b68f292aa3f /test | |
parent | 19663fdfb6c2c61ee6f31c03cfe5277253cfa44e (diff) | |
download | advent-of-code-0742b596f9da460736d64a261312099b3e6483b3.tar.gz advent-of-code-0742b596f9da460736d64a261312099b3e6483b3.zip |
2019 day2 part1
Diffstat (limited to 'test')
-rw-r--r-- | test/test_2019.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_2019.cpp b/test/test_2019.cpp index 8dfc012..1505395 100644 --- a/test/test_2019.cpp +++ b/test/test_2019.cpp @@ -9,3 +9,8 @@ TEST_CASE("The Tyranny of the Rocket Equation", "[2019]") { REQUIRE(5203967 == aoc2019::day1part2(lv)); REQUIRE(50346 == aoc2019::day1part2("100756")); } + +TEST_CASE("1202 Program Alarm", "[2019]") { + line_view lv = load_file("../src/2019/day2/input"); + REQUIRE(11590668 == aoc2019::day2(lv)); +} |