Merge #7811: [0.12.2] qa Backports
6862627Add listunspent() test for spendable/unspendable UTXO (Joao Fonseca)28ba22c[qa] Remove misleading "errorString syntax" (MarcoFalke)f1f1b82[qa] py2: Unfiddle strings into bytes explicitly (MarcoFalke)c0d9e31Tests: make prioritise_transaction.py more robust (Suhas Daftuar)ff9b436[qa] Bug fixes and refactor (MarcoFalke)b1dd64b[qa] wallet: Wait for reindex to catch up (MarcoFalke)f23cb7c[qa] Add tests verifychain, lockunspent, getbalance, listsinceblock (MarcoFalke)3316552[qa] Test walletpassphrase timeout (MarcoFalke)6aae129[qa] wallet: Print maintenance (MarcoFalke)ad8c743[qa] Extend tests (MarcoFalke)d89fbfe[qa] rpc-test: Normalize assert() (MarcoFalke)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
from __future__ import division,print_function,unicode_literals
|
||||
import subprocess
|
||||
import os
|
||||
import json
|
||||
|
||||
@@ -196,6 +196,8 @@ BOOST_AUTO_TEST_CASE(util_ParseMoney)
|
||||
BOOST_CHECK_EQUAL(ret, COIN*10);
|
||||
BOOST_CHECK(ParseMoney("1.00", ret));
|
||||
BOOST_CHECK_EQUAL(ret, COIN);
|
||||
BOOST_CHECK(ParseMoney("1", ret));
|
||||
BOOST_CHECK_EQUAL(ret, COIN);
|
||||
BOOST_CHECK(ParseMoney("0.1", ret));
|
||||
BOOST_CHECK_EQUAL(ret, COIN/10);
|
||||
BOOST_CHECK(ParseMoney("0.01", ret));
|
||||
@@ -215,6 +217,9 @@ BOOST_AUTO_TEST_CASE(util_ParseMoney)
|
||||
|
||||
// Attempted 63 bit overflow should fail
|
||||
BOOST_CHECK(!ParseMoney("92233720368.54775808", ret));
|
||||
|
||||
// Parsing negative amounts must fail
|
||||
BOOST_CHECK(!ParseMoney("-1", ret));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(util_IsHex)
|
||||
|
||||
Reference in New Issue
Block a user