double has been disabled, because I am no longer packaging the gdtoa library with Ledger (because double conversion really has nothing to do with what Ledger does). If you wish to use it, you can find gdtoa in cpp-rewrite-2006, under a sub-directory of the same name.
25 lines
518 B
C++
25 lines
518 B
C++
#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()
|
|
{
|
|
}
|