mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
MERGE-FIX: Fix unit tests
This commit is contained in:
parent
a39bad4a92
commit
3a01200e34
3 changed files with 8 additions and 3 deletions
|
|
@ -146,11 +146,12 @@ endif
|
|||
if ENABLE_WALLET
|
||||
BITCOIN_TESTS += \
|
||||
wallet/test/db_tests.cpp \
|
||||
wallet/test/psbt_wallet_tests.cpp \
|
||||
wallet/test/wallet_tests.cpp \
|
||||
wallet/test/wallet_crypto_tests.cpp \
|
||||
wallet/test/coinselector_tests.cpp \
|
||||
wallet/test/init_tests.cpp
|
||||
# ELEMENTS: disable PSBT test
|
||||
# wallet/test/psbt_wallet_tests.cpp
|
||||
|
||||
BITCOIN_TEST_SUITE += \
|
||||
wallet/test/wallet_test_fixture.cpp \
|
||||
|
|
|
|||
|
|
@ -69,7 +69,9 @@ BOOST_AUTO_TEST_CASE(bip173_testvectors_invalid)
|
|||
BOOST_AUTO_TEST_CASE(bech32_polymod_sanity)
|
||||
{
|
||||
std::vector<unsigned char> data(40);
|
||||
GetRandBytes(data.data(), data.size());
|
||||
// GetRandBytes only allows 32 bytes at a time
|
||||
GetRandBytes(data.data(), 32);
|
||||
GetRandBytes(data.data() + 32, data.size() - 32);
|
||||
|
||||
std::vector<unsigned char> base32;
|
||||
ConvertBits<8, 5, true>([&](unsigned char c) { base32.push_back(c); }, data.begin(), data.end());
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ BOOST_FIXTURE_TEST_SUITE(blech32_tests, BasicTestingSetup)
|
|||
BOOST_AUTO_TEST_CASE(blech32_polymod_sanity)
|
||||
{
|
||||
std::vector<unsigned char> data(40);
|
||||
GetRandBytes(data.data(), data.size());
|
||||
// GetRandBytes only allows 32 bytes at a time
|
||||
GetRandBytes(data.data(), 32);
|
||||
GetRandBytes(data.data() + 32, data.size() - 32);
|
||||
|
||||
std::vector<unsigned char> base32;
|
||||
ConvertBits<8, 5, true>([&](unsigned char c) { base32.push_back(c); }, data.begin(), data.end());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue