Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/rpcnestedtests.cpp
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | void RPCNestedTests::rpcNestedTests() { | ||||
RPCConsole::RPCExecuteCommandLine(*node, result, "getblockchaininfo()"); | RPCConsole::RPCExecuteCommandLine(*node, result, "getblockchaininfo()"); | ||||
QVERIFY(result.substr(0, 1) == "{"); | QVERIFY(result.substr(0, 1) == "{"); | ||||
// Whitespace at the end will be tolerated. | // Whitespace at the end will be tolerated. | ||||
RPCConsole::RPCExecuteCommandLine(*node, result, "getblockchaininfo "); | RPCConsole::RPCExecuteCommandLine(*node, result, "getblockchaininfo "); | ||||
QVERIFY(result.substr(0, 1) == "{"); | QVERIFY(result.substr(0, 1) == "{"); | ||||
// Quote path identifier are allowed, but look after a child contaning the | // Quote path identifier are allowed, but look after a child containing the | ||||
// quotes in the key. | // quotes in the key. | ||||
(RPCConsole::RPCExecuteCommandLine(*node, result, | (RPCConsole::RPCExecuteCommandLine(*node, result, | ||||
"getblockchaininfo()[\"chain\"]")); | "getblockchaininfo()[\"chain\"]")); | ||||
QVERIFY(result == "null"); | QVERIFY(result == "null"); | ||||
// parameter not in brackets are allowed. | // parameter not in brackets are allowed. | ||||
(RPCConsole::RPCExecuteCommandLine(*node, result, | (RPCConsole::RPCExecuteCommandLine(*node, result, | ||||
"createrawtransaction [] {} 0")); | "createrawtransaction [] {} 0")); | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |