aboutsummaryrefslogtreecommitdiff
path: root/src/test/crypto_tests.cpp
diff options
context:
space:
mode:
authorPieter Wuille <sipa@ulyssis.org>2014-06-12 13:34:29 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-06-21 19:47:43 +0200
commita0495bb68c6eff9c732d458bacab10490d6452b4 (patch)
tree191a3bb7929e1de43ea484873587249fd2533b19 /src/test/crypto_tests.cpp
parent4791b99e2dea0593775a8c75f62c8406d340191e (diff)
downloadbitcoin-a0495bb68c6eff9c732d458bacab10490d6452b4.tar.xz
Add <Hasher>::OUTPUT_SIZE
Diffstat (limited to 'src/test/crypto_tests.cpp')
-rw-r--r--src/test/crypto_tests.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/crypto_tests.cpp b/src/test/crypto_tests.cpp
index d425f082c3..7bd98fa381 100644
--- a/src/test/crypto_tests.cpp
+++ b/src/test/crypto_tests.cpp
@@ -16,6 +16,7 @@ BOOST_AUTO_TEST_SUITE(crypto_tests)
template<typename Hasher, typename In, typename Out>
void TestVector(const Hasher &h, const In &in, const Out &out) {
Out hash;
+ BOOST_CHECK(out.size() == h.OUTPUT_SIZE);
hash.resize(out.size());
{
// Test that writing the whole input string at once works.