diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-03-18 23:18:12 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-03-18 23:18:12 +0800 |
commit | 0207a5a0e5f5ba522f0b005eee3f269032b01c6d (patch) | |
tree | ff21a70507b6456807fb8d52090b2b95527db1df /test/test_2015.cpp | |
parent | 057a878b90cc72930a5e4fa312845fec00270a49 (diff) | |
download | advent-of-code-0207a5a0e5f5ba522f0b005eee3f269032b01c6d.tar.gz advent-of-code-0207a5a0e5f5ba522f0b005eee3f269032b01c6d.zip |
day11 done
Diffstat (limited to 'test/test_2015.cpp')
-rw-r--r-- | test/test_2015.cpp | 6 |
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); +} |