|
|
@ -45,7 +45,7 @@ BOOST_AUTO_TEST_CASE(acc_orderupgrade) |
|
|
|
ae.nTime = 1333333333; |
|
|
|
ae.nTime = 1333333333; |
|
|
|
ae.strOtherAccount = "b"; |
|
|
|
ae.strOtherAccount = "b"; |
|
|
|
ae.strComment = ""; |
|
|
|
ae.strComment = ""; |
|
|
|
pwalletMain->AddAccountingEntry(ae, walletdb); |
|
|
|
pwalletMain->AddAccountingEntry(ae); |
|
|
|
|
|
|
|
|
|
|
|
wtx.mapValue["comment"] = "z"; |
|
|
|
wtx.mapValue["comment"] = "z"; |
|
|
|
pwalletMain->AddToWallet(wtx); |
|
|
|
pwalletMain->AddToWallet(wtx); |
|
|
@ -55,7 +55,7 @@ BOOST_AUTO_TEST_CASE(acc_orderupgrade) |
|
|
|
|
|
|
|
|
|
|
|
ae.nTime = 1333333336; |
|
|
|
ae.nTime = 1333333336; |
|
|
|
ae.strOtherAccount = "c"; |
|
|
|
ae.strOtherAccount = "c"; |
|
|
|
pwalletMain->AddAccountingEntry(ae, walletdb); |
|
|
|
pwalletMain->AddAccountingEntry(ae); |
|
|
|
|
|
|
|
|
|
|
|
GetResults(walletdb, results); |
|
|
|
GetResults(walletdb, results); |
|
|
|
|
|
|
|
|
|
|
@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE(acc_orderupgrade) |
|
|
|
ae.nTime = 1333333330; |
|
|
|
ae.nTime = 1333333330; |
|
|
|
ae.strOtherAccount = "d"; |
|
|
|
ae.strOtherAccount = "d"; |
|
|
|
ae.nOrderPos = pwalletMain->IncOrderPosNext(); |
|
|
|
ae.nOrderPos = pwalletMain->IncOrderPosNext(); |
|
|
|
pwalletMain->AddAccountingEntry(ae, walletdb); |
|
|
|
pwalletMain->AddAccountingEntry(ae); |
|
|
|
|
|
|
|
|
|
|
|
GetResults(walletdb, results); |
|
|
|
GetResults(walletdb, results); |
|
|
|
|
|
|
|
|
|
|
@ -121,7 +121,7 @@ BOOST_AUTO_TEST_CASE(acc_orderupgrade) |
|
|
|
ae.nTime = 1333333334; |
|
|
|
ae.nTime = 1333333334; |
|
|
|
ae.strOtherAccount = "e"; |
|
|
|
ae.strOtherAccount = "e"; |
|
|
|
ae.nOrderPos = -1; |
|
|
|
ae.nOrderPos = -1; |
|
|
|
pwalletMain->AddAccountingEntry(ae, walletdb); |
|
|
|
pwalletMain->AddAccountingEntry(ae); |
|
|
|
|
|
|
|
|
|
|
|
GetResults(walletdb, results); |
|
|
|
GetResults(walletdb, results); |
|
|
|
|
|
|
|
|
|
|
|