Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/rpcnestedtests.cpp
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | void RPCNestedTests::rpcNestedTests() { | ||||
// parameter not in brackets are allowed. | // parameter not in brackets are allowed. | ||||
(RPCConsole::RPCExecuteCommandLine(*node, result, | (RPCConsole::RPCExecuteCommandLine(*node, result, | ||||
"createrawtransaction [] {} 0")); | "createrawtransaction [] {} 0")); | ||||
// Parameter in brackets are allowed. | // Parameter in brackets are allowed. | ||||
(RPCConsole::RPCExecuteCommandLine(*node, result2, | (RPCConsole::RPCExecuteCommandLine(*node, result2, | ||||
"createrawtransaction([],{},0)")); | "createrawtransaction([],{},0)")); | ||||
QVERIFY(result == result2); | QVERIFY(result == result2); | ||||
// Whitespace between parametres is allowed. | // Whitespace between parameters is allowed. | ||||
(RPCConsole::RPCExecuteCommandLine( | (RPCConsole::RPCExecuteCommandLine( | ||||
*node, result2, "createrawtransaction( [], {} , 0 )")); | *node, result2, "createrawtransaction( [], {} , 0 )")); | ||||
QVERIFY(result == result2); | QVERIFY(result == result2); | ||||
RPCConsole::RPCExecuteCommandLine( | RPCConsole::RPCExecuteCommandLine( | ||||
*node, result, "getblock(getbestblockhash())[tx][0]", &filtered); | *node, result, "getblock(getbestblockhash())[tx][0]", &filtered); | ||||
QVERIFY(result == | QVERIFY(result == | ||||
"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"); | "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"); | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |