aboutsummaryrefslogtreecommitdiff
path: root/test/test_2016.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_2016.cpp')
-rw-r--r--test/test_2016.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_2016.cpp b/test/test_2016.cpp
index b11f911..dfd05d0 100644
--- a/test/test_2016.cpp
+++ b/test/test_2016.cpp
@@ -53,3 +53,10 @@ TEST_CASE("Signals and Noise", "[2016]") {
REQUIRE(strcmp("gebzfnbt", msg1) == 0);
REQUIRE(strcmp("fykjtwyn", msg2) == 0);
}
+
+TEST_CASE("Internet Protocol Version 7", "[2016]") {
+ line_view lv = load_file("../src/2016/day7/input");
+ auto p = aoc2016::day7(lv);
+ REQUIRE(115 == p.first);
+ REQUIRE(231 == p.second);
+}