19 #include <gtest/gtest.h> 27 MD5Sum h2(
"0123456789abcdef");
28 MD5Sum h3(
"Franz jagt im komplett verwahrlosten Taxi quer durch Bayern");
29 MD5Sum h4(
"Frank jagt im komplett verwahrlosten Taxi quer durch Bayern");
31 h5 <<
"Franz" <<
" jagt" <<
" im" <<
" komplett"<<
" verwahrlosten" <<
32 " Taxi" <<
" quer" <<
" durch" <<
" Bayern";
35 EXPECT_EQ(
"d41d8cd98f00b204e9800998ecf8427e", h1.
toString());
37 EXPECT_EQ(
"4032af8d61035123906e58e067140cc5", h2.
toString());
39 EXPECT_EQ(
"a3cca2b2aa1e3b5b3b5aad99a8529074", h3.
toString());
41 EXPECT_EQ(
"7e716d0e702df0505fc72e2b89467910", h4.
toString());
43 EXPECT_EQ(
"a3cca2b2aa1e3b5b3b5aad99a8529074", h5.
toString());
TEST(MD5Sum, StringHashing)
Header file providing the MD5Sum class interface.