fix rpc unit test, plain numbers are not JSON compatible object

UniValues read() does only read valid json.
This commit is contained in:
Jonas Schnelli
2017-02-10 00:35:24 +00:00
committed by Jack Grigg
parent 9ccfdd9a01
commit 565d26737a
+2 -2
View File
@@ -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;
}