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, 9 insertions, 0 deletions
diff --git a/test/test_2015.cpp b/test/test_2015.cpp
index 9d470b8..2aef880 100644
--- a/test/test_2015.cpp
+++ b/test/test_2015.cpp
@@ -1,6 +1,7 @@
#include "2015/day1/aoc.h"
#include "2015/day2/aoc.h"
#include "2015/day3/aoc.h"
+#include "2015/day4/aoc.h"
#include "catch.hpp"
#include <stdio.h>
@@ -34,3 +35,11 @@ TEST_CASE("Perfectly Spherical Houses in a Vacuum", "[day3]") {
REQUIRE(p.first == 2565);
REQUIRE(p.second == 2639);
}
+
+TEST_CASE("The Ideal Stocking Stuffer", "[day4]") {
+ char s[] = "abcdef609043";
+ uint8_t* md5 = md5String(s);
+ for (auto i = 0; i < 16; i++) {
+ printf("%x", md5[i]);
+ }
+}