lokinet/test/test_md5.cpp

10 lines
225 B
C++
Raw Normal View History

2019-03-13 20:02:01 +00:00
#include <gtest/gtest.h>
#include <abyss/md5.hpp>
TEST(TestMD5, TestMD5)
{
std::string str("The quick brown fox jumps over the lazy dog");
auto H = MD5::SumHex(str);
ASSERT_EQ(H, "9e107d9d372bb6826bd81d3542a419d6");
2019-04-25 23:21:19 +00:00
}