aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-04-06 17:50:08 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-04-06 17:50:08 +0800
commitd5382bf6436dbb040fb4aa664135d8c1cb0fc3eb (patch)
tree579da864ba334d1ef942291157335010723bc30f /test
parent844da9170858556950aa54d4843de332734e228f (diff)
downloadadvent-of-code-d5382bf6436dbb040fb4aa664135d8c1cb0fc3eb.tar.gz
advent-of-code-d5382bf6436dbb040fb4aa664135d8c1cb0fc3eb.zip
2018 day3 part1
Diffstat (limited to 'test')
-rw-r--r--test/test_2018.cpp5
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));
+}