blob: 0d681a88c4c264cec8874c79f528956ce9368fc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#define BOOST_TEST_DYN_LINK
//#define BOOST_TEST_MODULE balance
#include <boost/test/unit_test.hpp>
#include <system.hh>
#include "balance.h"
using namespace ledger;
struct balance_fixture {
balance_fixture() {
times_initialize();
amount_t::initialize();
// Cause the display precision for dollars to be initialized to 2.
amount_t x1("$1.00");
BOOST_CHECK(x1);
amount_t::stream_fullstrings = true; // make reports from UnitTests accurate
}
~balance_fixture()
{
amount_t::stream_fullstrings = false;
amount_t::shutdown();
times_shutdown();
}
};
//BOOST_FIXTURE_TEST_SUITE(balance, balance_fixture)
//BOOST_AUTO_TEST_SUITE_END()
|