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.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/test_2015.cpp b/test/test_2015.cpp
index 03ab285..b9582c6 100644
--- a/test/test_2015.cpp
+++ b/test/test_2015.cpp
@@ -59,10 +59,15 @@ TEST_CASE("Doesn't He Have Intern-Elves For This?", "[day5]") {
const char* sub1[] = {"xy", "dx"};
const char* sub2[] = {"xy", "fadd", "dx"};
- REQUIRE(lv.contains(sub2[1]));
+ REQUIRE(lv.contains("fadd"));
+ REQUIRE(lv.contains("ad"));
REQUIRE(aoc2015::is_nice(lv, sub1, ARRAY_SIZE(sub1)));
REQUIRE(!aoc2015::is_nice(lv, sub2, ARRAY_SIZE(sub2)));
+ REQUIRE(aoc2015::is_interleaved(lv));
+ REQUIRE(aoc2015::has_no_overlap_pair(lv));
line_view ss = load_file("../src/2015/day5/input");
- REQUIRE(aoc2015::day5(ss) == 255);
+ auto p = aoc2015::day5(ss);
+ REQUIRE(p.first == 255);
+ REQUIRE(p.second == 55);
}