Browse Source
fix rpc unit test, plain numbers are not JSON compatible object
UniValues read() does only read valid json.
pull/4/head
Jonas Schnelli
9 years ago
committed by
Jack Grigg
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with
2 additions and
2 deletions
-
src/test/rpc_tests.cpp
|
|
@ -129,8 +129,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; |
|
|
|
} |
|
|
|
|
|
|
|