Skip to content

Commit

Permalink
Format test-digests_hh.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
fredmorcos committed Jan 22, 2024
1 parent ec47cf6 commit 99be55f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .not-formatted
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@
./pdns/test-base32_cc.cc
./pdns/test-base64_cc.cc
./pdns/test-common.hh
./pdns/test-digests_hh.cc
./pdns/test-distributor_hh.cc
./pdns/test-dnscrypt_cc.cc
./pdns/test-dnsdist_cc.cc
Expand Down
12 changes: 6 additions & 6 deletions pdns/test-digests_hh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ BOOST_AUTO_TEST_SUITE(test_digests_hh)

BOOST_AUTO_TEST_CASE(test_pdns_md5sum)
{
std::string result = "a3 24 8c e3 1a 88 a6 40 e6 30 73 98 57 6d 06 9e ";
std::string sum = pdns_md5("a quick brown fox jumped over the lazy dog");
std::string result = "a3 24 8c e3 1a 88 a6 40 e6 30 73 98 57 6d 06 9e ";
std::string sum = pdns_md5("a quick brown fox jumped over the lazy dog");

BOOST_CHECK_EQUAL(makeHexDump(sum), result);
BOOST_CHECK_EQUAL(makeHexDump(sum), result);
}

BOOST_AUTO_TEST_CASE(test_pdns_sha1sum)
{
std::string result = "b9 37 10 0d c9 57 b3 86 d9 cb 77 fc 90 c0 18 22 fd eb 6e 7f ";
std::string sum = pdns_sha1("a quick brown fox jumped over the lazy dog");
std::string result = "b9 37 10 0d c9 57 b3 86 d9 cb 77 fc 90 c0 18 22 fd eb 6e 7f ";
std::string sum = pdns_sha1("a quick brown fox jumped over the lazy dog");

BOOST_CHECK_EQUAL(makeHexDump(sum), result);
BOOST_CHECK_EQUAL(makeHexDump(sum), result);
}

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit 99be55f

Please sign in to comment.