#include "gtest/gtest.h"
#include "common/util.h"
#include "string_tools.h"
Go to the source code of this file.
|
| | TEST (sha256, empty) |
| | TEST (sha256, small) |
| | TEST (sha256, large) |
◆ TEST() [1/3]
Definition at line 42 of file sha256.cpp.
42{
ASSERT_TRUE(check(std::string(),
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855")); }
#define ASSERT_TRUE(condition)
◆ TEST() [2/3]
Definition at line 44 of file sha256.cpp.
44{
ASSERT_TRUE(check(std::string(65536*256, 0),
"080acf35a507ac9849cfcba47dc2ad83e01b75663a516279c8b9d243b719643e")); }
◆ TEST() [3/3]
Definition at line 43 of file sha256.cpp.
43{
ASSERT_TRUE(check(
"0123456789",
"84d89877f0d4041efb6bf91a16f0248f2fd573e6af05c19f96bedb9f882f7882")); }