blob: ca7598360341e3e8c499464724ee32f2557c1178 (
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
|
#include "t_balance.h"
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(BalanceTestCase, "numerics");
void BalanceTestCase::setUp()
{
ledger::set_session_context(&session);
// Cause the display precision for dollars to be initialized to 2.
amount_t x1("$1.00");
assertTrue(x1);
amount_t::stream_fullstrings = true; // make reports from UnitTests accurate
}
void BalanceTestCase::tearDown()
{
amount_t::stream_fullstrings = false;
ledger::set_session_context();
}
void BalanceTestCase::testConstructors()
{
}
|