Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/rpcnestedtests.cpp
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | void RPCNestedTests::rpcNestedTests() { | ||||
QVERIFY(result == "null"); | QVERIFY(result == "null"); | ||||
// parameter not in brackets are allowed. | // parameter not in brackets are allowed. | ||||
(RPCConsole::RPCExecuteCommandLine(result, "createrawtransaction [] {} 0")); | (RPCConsole::RPCExecuteCommandLine(result, "createrawtransaction [] {} 0")); | ||||
// Parameter in brackets are allowed. | // Parameter in brackets are allowed. | ||||
(RPCConsole::RPCExecuteCommandLine(result2, | (RPCConsole::RPCExecuteCommandLine(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( | ||||
result2, "createrawtransaction( [], {} , 0 )")); | result2, "createrawtransaction( [], {} , 0 )")); | ||||
QVERIFY(result == result2); | QVERIFY(result == result2); | ||||
RPCConsole::RPCExecuteCommandLine( | RPCConsole::RPCExecuteCommandLine( | ||||
result, "getblock(getbestblockhash())[tx][0]", &filtered); | result, "getblock(getbestblockhash())[tx][0]", &filtered); | ||||
QVERIFY(result == | QVERIFY(result == | ||||
"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"); | "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"); | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |