aboutsummaryrefslogtreecommitdiff
path: root/test/test_2017.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_2017.cpp')
-rw-r--r--test/test_2017.cpp9
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));
+}