John Wiegley
05529b2c68
Call times_initialize/shutdown in the unit tests
2009-10-25 05:40:26 -04:00
John Wiegley
092bda1435
Don't increase precision so much when dividing
...
Slow the increase in internal precision when dividing amounts.
Use "--debug amount.convert" if you wish to see this logic in action, if
a case where incorrect rounding is suspected comes up.
Fixes B68FFB0D-A9A0-479C-A6C0-68853F229333
2009-06-15 17:52:38 +01:00
John Wiegley
110f0b8023
Enabled use of pre-compiled headers by default
2009-03-10 17:02:03 -04:00
John Wiegley
38122c2224
Corrected warnings g++-4.3.3 was complaining about
2009-02-28 04:54:54 -04:00
John Wiegley
55a6d588ff
Allow uncommoditized amounts to +/- with an amount
...
Thus, you can say "$100 + 10" to increase it by $10.
2009-02-25 23:40:15 -04:00
John Wiegley
f13709f71a
Be smarter about printing uncommoditized amounts
2009-02-24 15:13:21 -04:00
John Wiegley
fc349389e3
Restored the --budget option
2009-02-20 23:12:23 -04:00
John Wiegley
d1f13be1d2
Fixed some incorrect #includes.
2009-02-07 19:48:29 -04:00
John Wiegley
2d941730b1
Largely removed all of Ledger's use of global variables, for the REPL's sake.
2009-02-04 19:55:27 -04:00
John Wiegley
bee8e50166
Removed serialization tests from the amount_t unit tests.
2009-02-03 19:06:56 -04:00
John Wiegley
cce65b8dd2
Added a more efficient amount_t::operator==, which changed semantics slightly.
2009-01-31 04:58:16 -04:00
John Wiegley
e9ff5caa13
Rationals based math is now passing the unit tests.
2009-01-31 04:25:05 -04:00
John Wiegley
5ec98f3ed3
Several corrections to the way rationals are handled.
2009-01-31 01:25:29 -04:00
John Wiegley
e4c7df4002
Don't perform rounding tests in Python.
2009-01-31 01:22:51 -04:00
John Wiegley
f1257cbc3e
Removed all dependency on gdtoa.
2009-01-30 16:19:31 -04:00
John Wiegley
9495ca740b
Fixed the amount_t unit test.
2009-01-30 00:43:54 -04:00
John Wiegley
e851c02d27
Unit test for Python are now auto-generated from the C++ tests.
2009-01-28 20:49:26 -04:00
John Wiegley
79a7976600
Reorganized Ledger so that it builds as 7 separate libraries. This is mainly
...
to prove to myself that it has proper decoupling between prior code areas.
2009-01-25 01:10:05 -04:00
John Wiegley
9c1389f423
Increase code coverage of the unit tests.
2008-08-13 18:21:39 -04:00
John Wiegley
36cd816404
Moved the test sources around, so that all the unit tests are in test/unit.
2008-08-05 19:48:42 -04:00