diff options
| author | Jonas Schnelli <[email protected]> | 2015-05-10 15:55:32 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2015-06-04 09:16:06 +0200 |
| commit | 1f263c899ee0756ed9ed133f35bec18bdef20cdc (patch) | |
| tree | 60931f07baeb2ae73492cda1bf91dbe521feca21 /src/test/rpc_tests.cpp | |
| parent | univalue: correct bool support (diff) | |
| download | discoin-1f263c899ee0756ed9ed133f35bec18bdef20cdc.tar.xz discoin-1f263c899ee0756ed9ed133f35bec18bdef20cdc.zip | |
fix rpc unit test, plain numbers are not JSON compatible object
UniValues read() does only read valid json.
Diffstat (limited to 'src/test/rpc_tests.cpp')
| -rw-r--r-- | src/test/rpc_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp index cbbecf08e..991763aba 100644 --- a/src/test/rpc_tests.cpp +++ b/src/test/rpc_tests.cpp @@ -123,8 +123,8 @@ BOOST_AUTO_TEST_CASE(rpc_format_monetary_values) static Value ValueFromString(const std::string &str) { - Value value; - BOOST_CHECK(value.read(str)); + UniValue value; + BOOST_CHECK(value.setNumStr(str)); return value; } |