diff options
| author | Ross Nicoll <[email protected]> | 2014-04-12 22:50:35 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2014-04-12 22:50:35 +0100 |
| commit | b08bfd12b49004221e1db0483fe145ffe8217732 (patch) | |
| tree | 82f46201efc7037df002fbc3dcc83aff0ca6fbb6 /src/test/wallet_tests.cpp | |
| parent | Made it clearer how coins are chosen for use when making a transaction, by sw... (diff) | |
| download | discoin-b08bfd12b49004221e1db0483fe145ffe8217732.tar.xz discoin-b08bfd12b49004221e1db0483fe145ffe8217732.zip | |
Modified expected values in wallet tests to take into account the numerically higher transaction costs of DOGE.
Diffstat (limited to 'src/test/wallet_tests.cpp')
| -rw-r--r-- | src/test/wallet_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/wallet_tests.cpp b/src/test/wallet_tests.cpp index bd0517ae0..7acd7c77f 100644 --- a/src/test/wallet_tests.cpp +++ b/src/test/wallet_tests.cpp @@ -170,11 +170,11 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests) add_coin( 3*COIN); add_coin( 4*COIN); // now we have 5+6+7+8+18+20+30+100+200+300+400 = 1094 cents BOOST_CHECK( wallet.SelectCoinsMinConf(95 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); - BOOST_CHECK_EQUAL(nValueRet, 1 * COIN); // we should get 1 BTC in 1 coin + BOOST_CHECK_EQUAL(nValueRet, 2 * COIN); // we should get 2 DOGE in 1 coin. 1 DOGE is not suitable due to transaction fee BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); BOOST_CHECK( wallet.SelectCoinsMinConf(195 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); - BOOST_CHECK_EQUAL(nValueRet, 2 * COIN); // we should get 2 BTC in 1 coin + BOOST_CHECK_EQUAL(nValueRet, 3 * COIN); // we should get 3 DOGE in 1 coin BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); // empty the wallet and start again, now with fractions of a cent, to test sub-cent change avoidance |