diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-04-06 10:24:20 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-04-06 10:24:20 +0800 |
commit | 749020a0961903ee89db0324d37c6132b4b061dc (patch) | |
tree | a739f03564d89239e71e0b14f249d92df98f950d /test/test_2017.cpp | |
parent | 8263b5724c410e5f90dcf1ec146f40c1497278a9 (diff) | |
download | advent-of-code-749020a0961903ee89db0324d37c6132b4b061dc.tar.gz advent-of-code-749020a0961903ee89db0324d37c6132b4b061dc.zip |
2017 day3 part1
Diffstat (limited to 'test/test_2017.cpp')
-rw-r--r-- | test/test_2017.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_2017.cpp b/test/test_2017.cpp index 3e36c96..d9c5cca 100644 --- a/test/test_2017.cpp +++ b/test/test_2017.cpp @@ -23,3 +23,12 @@ TEST_CASE("Corruption Checksum", "[2017]") { REQUIRE(43074 == p.first); REQUIRE(280 == p.second); } + +TEST_CASE("Spiral Memory", "[2017]") { + REQUIRE(2 == aoc2017::day3(9)); + REQUIRE(2 == aoc2017::day3(11)); + REQUIRE(3 == aoc2017::day3(10)); + REQUIRE(4 == aoc2017::day3(13)); + REQUIRE(4 == aoc2017::day3(25)); + REQUIRE(430 == aoc2017::day3(312051)); +} |