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.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_2015.cpp b/test/test_2015.cpp
index f55a2f5..4b037c4 100644
--- a/test/test_2015.cpp
+++ b/test/test_2015.cpp
@@ -8,6 +8,7 @@
#include "2015/day8/aoc.h"
#include "2015/day9/aoc.h"
#include "2015/day10/aoc.h"
+#include "2015/day11/aoc.h"
#include "catch.hpp"
#include <stdio.h>
@@ -131,3 +132,8 @@ TEST_CASE("Elves Look, Elves Say", "[day10]") {
REQUIRE(329356 == aoc2015::day10("3113322113", 40));
REQUIRE(4666278 == aoc2015::day10("3113322113", 50));
}
+
+TEST_CASE("Corporate Policy", "[day11]") {
+ REQUIRE(strcmp(aoc2015::day11("hxbxwxba"), "hxbxxyzz") == 0);
+ REQUIRE(strcmp(aoc2015::day11("hxbxxyzz"), "hxcaabcc") == 0);
+}