aboutsummaryrefslogtreecommitdiff
path: root/test/test_2015.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_2015.cpp')
-rw-r--r--test/test_2015.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_2015.cpp b/test/test_2015.cpp
index 32ab803..9d470b8 100644
--- a/test/test_2015.cpp
+++ b/test/test_2015.cpp
@@ -1,5 +1,6 @@
#include "2015/day1/aoc.h"
#include "2015/day2/aoc.h"
+#include "2015/day3/aoc.h"
#include "catch.hpp"
#include <stdio.h>
@@ -26,3 +27,10 @@ TEST_CASE("I Was Told There Would Be No Math", "[day2]") {
REQUIRE(p.first == 1586300);
REQUIRE(p.second == 3737498);
}
+
+TEST_CASE("Perfectly Spherical Houses in a Vacuum", "[day3]") {
+ line_view lv = load_file("../src/2015/day3/input");
+ auto p = aoc2015::day3(lv);
+ REQUIRE(p.first == 2565);
+ REQUIRE(p.second == 2639);
+}