Commit graph

468 commits

Author SHA1 Message Date
Martin Michlmayr
a5ffcc42ff Improve backwards compatibility with ledger2
This brings some single character format strings in line with what
they actually meant in ledger2.

Bug fix for #755
2014-05-30 23:52:36 -04:00
Martin Michlmayr
dfcbbd169e Fix query string for select account
A wrong query string was generated by "select account": one ansify_if()
too much was listed and justify() was called with the wrong parameters.

Bug fix for #744
2014-05-30 22:01:08 -04:00
Martin Michlmayr
b534ee80a3 Handle POST_COST_VIRTUAL in print
Bug fix for #1046
2014-05-30 20:23:59 -04:00
Martin Michlmayr
fafd7c1346 Check whether a month is followed by a year
Bug fix for #375
2014-05-30 18:27:22 -04:00
Martin Michlmayr
b6b6a98d0d Update line numbers 2014-05-26 18:31:59 -04:00
Martin Michlmayr
c55f8c1ef1 Add test case to test for invalid option embedded in journal 2014-05-26 18:30:16 -04:00
Martin Michlmayr
235c770d4a Fix typo in filename 2014-05-26 18:26:55 -04:00
Martin Michlmayr
3582fb360c Remove unnecessary command directives from test cases
These are not necessary and are currently not effective anyway (see
bug #1045)
2014-05-26 18:09:09 -04:00
Martin Michlmayr
07e33a186e Add test case for tags command 2014-05-19 21:48:21 -04:00
Martin Michlmayr
642bdd1d99 Add test case for: option --permissive now quiets balance assertions
Add a test csae for the change "The option --permissive now quiets
balance assertions" (634aa589)
2014-05-18 09:55:04 -04:00
Martin Michlmayr
2cee0fe23f Cosmetic change - format code consistently
Add a space between if and the opening bracket, between a closing
round bracket and the following opening curly bracket, etc.
2014-05-18 09:51:32 -04:00
Martin Michlmayr
60fd2b234a Add test case for balance assertion that's off 2014-05-18 09:34:55 -04:00
Martin Michlmayr
762546d34b Add a test case for aliases defined in account directives 2014-05-17 21:29:58 -04:00
Martin Michlmayr
0ccbcc7810 Renamed test for --recursive-aliases option for consistency 2014-05-17 21:25:55 -04:00
Martin Michlmayr
46948d3914 Add test case for --no-aliases option 2014-05-17 21:21:56 -04:00
thdox
8b3f8d1884 Fix bug introduced by commit AA2FF2B
Correction is to not use uninitialized amount
2014-05-17 23:41:07 +02:00
Martin Michlmayr
ab921cca0c Ensure that high-levels directives have arguments if they need one
Ensure that high-levels directives, such as account, alias and
commodity, have arguments if they need one.  Bug fix for #1036
2014-05-14 17:55:07 -04:00
Martin Michlmayr
86fd99c9d0 Ensure that directives have arguments if they need one
Ensure that account, commodity and payee directives have arguments
if they need one.  Bug fix for #785
2014-05-14 17:53:43 -04:00
Martin Michlmayr
60d9c2bc1d Remove trailing whitespace from error messages
Fix for bug #867
2014-05-13 18:08:34 -04:00
Martin Michlmayr
c411792edb Add test case or new payee uuid feature 2014-05-13 18:03:48 -04:00
Martin Michlmayr
9b99a1a9cb Add a test for an error in an included file 2014-05-13 11:04:48 -04:00
Martin Michlmayr
e7af7c45bd Update Python tests for fix for bug #383 2014-05-13 10:16:30 -04:00
Martin Michlmayr
b99d8d615a Add test cases for bug #494
The issues raised in bug #494 are no longer there but let's add some
test cases.
2014-05-13 09:24:26 -04:00
Martin Michlmayr
0c9e188cfb Honour date-format for lot dates
Fixes bug #383
2014-05-13 00:03:39 -04:00
Martin Michlmayr
e92527e4da Add another test case for bug #999 2014-05-12 12:59:53 -04:00
Martin Michlmayr
56cf72ed0a Add more --pivot tests 2014-05-11 10:00:53 +02:00
Martin Michlmayr
cc7d0c82ea Add tests for the --pivot option 2014-05-11 01:03:16 +02:00
John Wiegley
bd8a1a6756 Use the POST_COST_VIRTUAL flag when exchange commodities
Fixes #999
2014-05-08 14:28:07 -05:00
John Wiegley
94468d21b8 Temporarily disable the DocTests 2014-04-17 14:57:00 -05:00
John Wiegley
3435a81b67 Correct one of the baseline tests 2014-04-14 11:41:52 -05:00
John Wiegley
0d23e3d4f6 Apply any outstanding deferred postings at the end of parsing 2014-04-14 11:08:26 -05:00
John Wiegley
8f8a94c28e Add the concept of "deferred postings"
This is pretty much exclusively for allowing one to use balance
assertions with replicated transactions across multiple files.
2014-04-13 23:26:14 -05:00
Peter Feigl
831c064c38 Added support for validation tests to DocTest.py (input:validate and
command:validate)

It is now possible to use @smallexample @c input:validate (and
command:validate) to specify that an example should just be read by
ledger (and checked for errors) or that a ledger command should be
executed (with default input -f sample.dat, if none is specified).

These annotations have been added into ledger3.texi where appropriate.

Running the ledger3.texi test now takes a second or two, but a lot of
the @smallexamples are now automatically tested.
2014-03-04 10:05:09 +01:00
Peter Feigl
75b0a5d8ff Adding option --recursive-aliases, adding documentation to man-page and manual 2014-02-26 09:29:31 +01:00
Peter Feigl
230fa31ba3 Adding tests for recursive aliases 2014-02-26 01:30:45 +01:00
Alexis Hildebrandt
3d9faef448 DocTests: Allow inline input to be used with different example commands 2014-02-19 06:52:43 +01:00
Alexis Hildebrandt
90988feebc DocTests: Allow multiple example inputs
to be used as single ledger data for an example command
2014-02-19 06:52:43 +01:00
Alexis Hildebrandt
e7cfaa1e65 Fix apply_year_directive
Using the Y 2014 syntax works fine, but using
apply year 2014 resulted in the following error:
Error: Year is out of valid range: 1400..10000
since part of the given year string was chopped off.
2014-02-12 10:38:07 +01:00
Alexis Hildebrandt
c566afe3b1 Add proper argument parsing to DocTests.py 2014-02-09 07:28:58 +01:00
Alexis Hildebrandt
960ebc2a57 Print summary list of failed doc tests if any 2014-02-09 07:20:03 +01:00
Alexis Hildebrandt
a1cc8ca15a Add support to check documentation examples with inline data 2014-02-07 18:39:35 +01:00
Alexis Hildebrandt
fbbb379fe0 Check examples in documentation when running tests
The DocTests.py script will parse a given texinfo file for specially
marked examples, run the ledger command from the example, and check
the result against the example output from the documentation.
2014-02-07 00:21:38 +01:00
Johann Klähn
89c21e9967 build shared library/python module, clean up CMake
libledger will now be built as a shared library. You can 'import ledger'
from python IFF you copy libledger.so to ledger.so or create a symlink.
2014-02-01 01:30:53 +01:00
Craig Earls
9a142ca656 Corrected discrepancies between documentation and drewr3.dat regarding apply and bucket 2013-09-07 10:17:46 -07:00
John Wiegley
8d1067c89c Disable three tests preventing Jenkins from succeeding
These aren't actually failures, just issues with the way that Jenkins
works on my system (mainly because ~/.jenkins is a symlink pointing at
another volume).
2013-06-19 13:49:10 -05:00
John Wiegley
fe810fa13f Revert "Fix tests when running under Jenkins"
This reverts commit 7183dabc84.
2013-06-08 19:00:04 -05:00
John Wiegley
7183dabc84 Fix tests when running under Jenkins 2013-06-08 18:55:14 -05:00
John Wiegley
9f68d1799a Fix test/input/drewr3.dat 2013-05-23 04:02:24 -05:00
John Wiegley
a79cf36c64 Fix #784 2013-05-23 03:23:49 -05:00
John Wiegley
82345899f7 Remove some unnecessary and complicated logic
Fixes #712
2013-05-19 03:38:20 -05:00