aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-03-15 17:30:51 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-03-15 17:30:51 +0800
commit39fa6df7d0d95c21c7eea7ca7a424468abbf6a2c (patch)
tree01836493ae2f05a720c928bc0e46453316b0d478 /test
parentac57557d101f8b7c75e9350712daf16e9b956613 (diff)
downloadadvent-of-code-39fa6df7d0d95c21c7eea7ca7a424468abbf6a2c.tar.gz
advent-of-code-39fa6df7d0d95c21c7eea7ca7a424468abbf6a2c.zip
md5
Diffstat (limited to 'test')
-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]);
+ }
+}