diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-03-15 09:29:28 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-03-15 09:29:28 +0800 |
commit | 8c0bc49502ee9101d3f761cd791ebe770012d26d (patch) | |
tree | 7cd518ca5d5f3ce679a408824a821de4f038146d /test/test_2015.cpp | |
parent | 1b7948bab0ae9b23cdb0693e5590205d177bee13 (diff) | |
download | advent-of-code-8c0bc49502ee9101d3f761cd791ebe770012d26d.tar.gz advent-of-code-8c0bc49502ee9101d3f761cd791ebe770012d26d.zip |
day1
Diffstat (limited to 'test/test_2015.cpp')
-rw-r--r-- | test/test_2015.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test_2015.cpp b/test/test_2015.cpp index 67e25f0..7955ede 100644 --- a/test/test_2015.cpp +++ b/test/test_2015.cpp @@ -1,5 +1,9 @@ #include "catch.hpp" +#include "2015/day1/aoc.h" +#include <stdio.h> -TEST_CASE("", "[]") { - +TEST_CASE("Not Quite Lisp", "[]") { + line_view lv = load_file("../src/2015/day1/input"); + REQUIRE(aoc2015::day1(lv) == 74); + REQUIRE(aoc2015::day1(lv, -1) == 1795); } |