diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_2016.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_2016.cpp b/test/test_2016.cpp index d2dec77..cc3fcfd 100644 --- a/test/test_2016.cpp +++ b/test/test_2016.cpp @@ -188,9 +188,11 @@ TEST_CASE("Firewall Rules", "[2016]") { TEST_CASE("", "[2016]") { line_view lv = load_file("../src/2016/day21/input"); - auto p = aoc2016::day21(lv); - REQUIRE(0 == p.first); - REQUIRE(0 == p.second); + char cs[8] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'}; + char xs[8] = {'f', 'b', 'g', 'd', 'c', 'e', 'a', 'h'}; + aoc2016::day21(lv,cs, xs); + REQUIRE(memcmp(cs, "bdfhgeca", 8) == 0); + REQUIRE(memcmp(xs, "gdfcabeh", 8) == 0); } |