diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-03-15 14:43:26 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-03-15 14:43:26 +0800 |
commit | ac57557d101f8b7c75e9350712daf16e9b956613 (patch) | |
tree | 78a1d4e8673237aca1b99f810c45952d72635c0c /test/test_2015.cpp | |
parent | 1a768c1b8d69986c1cafcf5ead8a1f0424cefcbe (diff) | |
download | advent-of-code-ac57557d101f8b7c75e9350712daf16e9b956613.tar.gz advent-of-code-ac57557d101f8b7c75e9350712daf16e9b956613.zip |
day3
Diffstat (limited to 'test/test_2015.cpp')
-rw-r--r-- | test/test_2015.cpp | 8 |
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); +} |