Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/test/accounting_tests.cpp
// Copyright (c) 2012-2016 The Bitcoin Core developers | // Copyright (c) 2012-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "wallet/wallet.h" | #include <wallet/wallet.h> | ||||
#include "wallet/test/wallet_test_fixture.h" | #include <wallet/test/wallet_test_fixture.h> | ||||
#include <cstdint> | |||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <cstdint> | |||||
extern CWallet *pwalletMain; | extern CWallet *pwalletMain; | ||||
BOOST_FIXTURE_TEST_SUITE(accounting_tests, WalletTestingSetup) | BOOST_FIXTURE_TEST_SUITE(accounting_tests, WalletTestingSetup) | ||||
static void GetResults(std::map<Amount, CAccountingEntry> &results) { | static void GetResults(std::map<Amount, CAccountingEntry> &results) { | ||||
std::list<CAccountingEntry> aes; | std::list<CAccountingEntry> aes; | ||||
results.clear(); | results.clear(); | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |