Commit graph

650 commits

Author SHA1 Message Date
John Wiegley
95a3788fa7 Restored the --basis option 2009-02-20 15:41:49 -04:00
John Wiegley
04bbf2ba96 Added test for --balance-format 2009-02-20 15:41:49 -04:00
John Wiegley
40f2ff6d6f Added several new regression tests 2009-02-20 15:41:49 -04:00
John Wiegley
42f94d2b8b Added several new baseline tests 2009-02-20 15:41:49 -04:00
John Wiegley
740cd8e8f1 Added feature baseline tests
These are like regression tests to confirm the basic functionality of
every Ledger feature.  Also, made the release-distcheck target less
sensitive.
2009-02-20 13:31:01 -04:00
John Wiegley
3826cb1bee Re-enabled parsing of timelog data 2009-02-19 15:50:24 -04:00
John Wiegley
bc2983928d Compilation verification code only with debugging
Previously, --verify would work even if the sources were built with
default options.  However, in the interests of performance, --verify is
now only available if --enable-debug was passed to configure.
2009-02-16 17:15:52 -04:00
John Wiegley
d0a664d102 Fixed several unused value and param warnings 2009-02-16 16:55:18 -04:00
John Wiegley
59aefb5a3b Inverted the default display mode for balance reports. Use -n to collapse
them, as this fits better with what -n does for register reports.
2009-02-08 05:18:46 -04:00
John Wiegley
d1f13be1d2 Fixed some incorrect #includes. 2009-02-07 19:48:29 -04:00
John Wiegley
7b24e8f8e3 Moved some files around. 2009-02-05 21:18:25 -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
b42ef31d93 Make amounts output fullstrings in the commodity unit tests. 2009-01-31 01:22:23 -04:00
John Wiegley
75f1cd727c Corrected Python reference to the AmountParse enum. 2009-01-31 01:20:34 -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
ef934efb3a Added a slew of date/time format tests (inactive, however). 2009-01-30 00:41:23 -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
3020f0f851 Removed temporary file. 2009-01-28 18:00:31 -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
49b83c0d6f Further extended commodities unit test. 2009-01-19 20:05:18 -04:00
John Wiegley
85be211f99 Extended commodities unit test. 2009-01-19 19:58:59 -04:00
John Wiegley
009dd3969a Added a recursive, date-based commodity price searching capability. This
makes it possible to find all possible prices for a commodity by walking the
map of pricing relationships to all other commodities, even if the relation is
distant.
2009-01-19 17:48:27 -04:00
John Wiegley
855ac383d8 Set LD_LIBRARY_PATH in addition to DYLD_LIBRARY_PATH. 2008-08-31 21:01:19 -04:00
John Wiegley
274552f2f9 As the 'bal' command is working again as it should, one of the regression
tests needed to change back to expecting 2.6.1-like behavior.
2008-08-14 04:15:11 -04:00
John Wiegley
9c1389f423 Increase code coverage of the unit tests. 2008-08-13 18:21:39 -04:00
John Wiegley
3231e380bb The balance output now includes the final total. 2008-08-13 05:48:32 -04:00
John Wiegley
572a37a9c6 Use $PYTHON to locate which Python interpretor to use during a build. 2008-08-10 00:56:28 -04:00
John Wiegley
3f7430bd81 Don't include gdtoa/.libs anymore, it's not being used. 2008-08-08 03:13:29 -04:00
John Wiegley
925387d7c0 The Python interface code is now building again and passes its unit tests. 2008-08-07 03:28:48 -04:00
John Wiegley
71e0491aec Added a module init file (__init__.py) for the test directory. 2008-08-07 02:58:27 -04:00
John Wiegley
c0e7315467 Changed tests module reference to just test. 2008-08-07 02:58:15 -04:00
John Wiegley
6ddc21dc5f 'make distcheck' now works. 2008-08-06 23:21:06 -04:00
John Wiegley
54f2a8012f Moved several tests around again (python/test -> test/python). 2008-08-06 18:23:50 -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
John Wiegley
f6f4a46cf5 Moved around most of the files so that source code is in src/, documentation
is in doc/, etc.
2008-08-05 18:05:49 -04:00
John Wiegley
806be999ef A few small changes to regress.py to make pylint mostly happy. 2008-08-05 03:34:25 -04:00
John Wiegley
98c05e8eb2 Added infrastructure for running regression tests, since I would like to make
sure that nothing breaks again once a bug in closed.
2008-08-05 03:20:14 -04:00
John Wiegley
858978de89 Journal data structures now use date_t instead of datetime_t.
This means transactions can only have day-level granularity -- which has
always been the case from an data file point of view.  The advantage to this
restriction is that reports will now be immune from daylight savings related
bugs, where a transaction falls to the wrong side of a --monthly report, for
example.
2008-08-01 17:37:22 -04:00
John Wiegley
80f87bc100 Corrected a failing test. 2008-07-30 15:57:03 -04:00
John Wiegley
4518ea9540 Value expression architecture is now rewritten, but the functionality of the
old system (for example, the meaning of 'a') has yet to be restored.  In the
new scheme, this will be done by definition a function outside of the value
expression logic, rather than the tight coupling between journal innards and
value expressions that occurred in 2.x.
2008-07-29 05:59:38 -04:00
John Wiegley
63039ade92 Added the skeleton for the upcoming value_expr unit tests. 2008-07-28 03:42:18 -04:00
John Wiegley
9e9f25b566 'make check' is now working again. Also, conversion from amount_t to/from
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.
2008-07-27 01:03:41 -04:00
John Wiegley
daee971cbc Got the unit tests compiling again (though not running yet). 2008-05-09 05:17:44 -04:00
John Wiegley
289cc97d45 Exchanged old test files for the new testing code in was-v3.0. 2008-05-08 02:50:18 -04:00