aboutsummaryrefslogtreecommitdiff
path: root/test/test_2018.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_2018.cpp')
-rw-r--r--test/test_2018.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/test_2018.cpp b/test/test_2018.cpp
index ac15881..57c3845 100644
--- a/test/test_2018.cpp
+++ b/test/test_2018.cpp
@@ -2,6 +2,11 @@
#include "catch.hpp"
#include <stdio.h>
-TEST_CASE("", "[2018]") {
- // line_view lv = load_file("../src/2018/day1/input");
+TEST_CASE("Chronal Calibration", "[2018]") {
+ line_view lv = load_file("../src/2018/day1/input");
+ REQUIRE(522 == aoc2018::day1(lv));
+ REQUIRE(73364 == aoc2018::day1part2(lv));
+ // REQUIRE(10 == aoc2018::day1part2("+3\n+3\n+4\n-2\n-4"));
+ // REQUIRE(5 == aoc2018::day1part2("-6\n+3\n+8\n+5\n-6"));
+ // REQUIRE(14 == aoc2018::day1part2("+7\n+7\n-2\n-7\n-4"));
}