diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-04-06 17:50:08 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-04-06 17:50:08 +0800 |
commit | d5382bf6436dbb040fb4aa664135d8c1cb0fc3eb (patch) | |
tree | 579da864ba334d1ef942291157335010723bc30f /test | |
parent | 844da9170858556950aa54d4843de332734e228f (diff) | |
download | advent-of-code-d5382bf6436dbb040fb4aa664135d8c1cb0fc3eb.tar.gz advent-of-code-d5382bf6436dbb040fb4aa664135d8c1cb0fc3eb.zip |
2018 day3 part1
Diffstat (limited to 'test')
-rw-r--r-- | test/test_2018.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_2018.cpp b/test/test_2018.cpp index b4c09c4..db1c037 100644 --- a/test/test_2018.cpp +++ b/test/test_2018.cpp @@ -21,3 +21,8 @@ TEST_CASE("Inventory Management System", "[2018]") { REQUIRE(6642 == p); REQUIRE(strcmp("cvqlbidheyujgtrswxmckqnap", common) == 0); } + +TEST_CASE("No Matter How You Slice It", "[2018]") { + line_view lv = load_file("../src/2018/day3/input"); + REQUIRE(109785 == aoc2018::day3(lv, 1)); +} |