diff options
| author | Pieter Wuille <[email protected]> | 2014-06-12 13:34:29 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-06-21 19:47:43 +0200 |
| commit | a0495bb68c6eff9c732d458bacab10490d6452b4 (patch) | |
| tree | 191a3bb7929e1de43ea484873587249fd2533b19 /src/test/crypto_tests.cpp | |
| parent | crypto: create a separate lib for crypto functions (diff) | |
| download | discoin-a0495bb68c6eff9c732d458bacab10490d6452b4.tar.xz discoin-a0495bb68c6eff9c732d458bacab10490d6452b4.zip | |
Add <Hasher>::OUTPUT_SIZE
Diffstat (limited to 'src/test/crypto_tests.cpp')
| -rw-r--r-- | src/test/crypto_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/crypto_tests.cpp b/src/test/crypto_tests.cpp index d425f082c..7bd98fa38 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. |