40 #include <pvsutil/Logger.h>
42 #include <SkelCL/detail/Util.h>
48 class SHA1Test :
public ::testing::Test {
51 pvsutil::defaultLogger.setLoggingLevel(pvsutil::Logger::Severity::Debug);
58 TEST_F(SHA1Test, EmptyHash) {
60 std::string expected(
"da39a3ee5e6b4b0d3255bfef95601890afd80709");
62 EXPECT_EQ(expected, skelcl::detail::util::hash(text));
65 TEST_F(SHA1Test, lazyDog) {
66 std::string text(
"The quick brown fox jumps over the lazy dog");
67 std::string expected(
"2fd4e1c67a2d28fced849ee1bb76e7391b93eb12");
69 EXPECT_EQ(expected, skelcl::detail::util::hash(text));
72 TEST_F(SHA1Test, lazyCog) {
73 std::string text(
"The quick brown fox jumps over the lazy cog");
74 std::string expected(
"de9f2c7fd25e1b3afad3e85a0bd17d9b100db4b3");
76 EXPECT_EQ(expected, skelcl::detail::util::hash(text));