11 {
12
13 using test_sha3 = std::tuple<std::string, std::string>;
14 const std::vector<test_sha3> tests {
15
16 {
17 "",
18 "a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a",
19 },
20
21
22 {
23 "abc",
24 "3a985da74fe225b2045c172d6bd390bd855f086e3e9d525b46bfe24511431532",
25 },
26
27
28 {
29 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
30 "41c0dba2a9d6240849100376a8235e2c82e1b9998a999e21db32dd97496d3376",
31 }
32 };
33
34 for(const auto& test : tests) {
35 BOOST_CHECK_EQUAL(
fc::sha3::hash(std::get<0>(test),
true).
str(), std::get<1>(test));
36 }
37