Commit graph

223 commits

Author SHA1 Message Date
thdox
459f587012 Improve documentation about --rich-data.
Conflicts:
	doc/ledger.1
2015-02-21 19:41:17 +01:00
thdox
991b3f25b1 Rename file from test/regress/634AA589.test to
test/baseline/opt-permissive.test. Actually 634AA589 is the initial
commit that created permissive option.
2015-01-22 02:00:40 +01:00
Alexis Hildebrandt
01252035cd [doc] Add CheckTests to ctest
to check whether all available ledger options documented
and are being tested.

Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
2015-01-15 14:53:16 +01:00
Alexis Hildebrandt
f1478851ee Fix crash when using --trace 10 or above
uint8_t is typedef'd to char, thus boost::lexical_cast treats it
as such instead of a number.
2014-12-23 23:45:39 +01:00
tripun
8dbeb91493 Add --actual-dates tests 2014-08-12 11:18:45 +02:00
tripun
1b84d960a3 Add test for primary-date option 2014-08-12 11:18:30 +02:00
tripun
35c7c516fc removing test with reg --lot-prices --equity until issue is fixed 2014-08-10 15:03:07 +05:30
tripun
4aedd41367 add test for --equity 2014-08-10 13:32:53 +05:30
Martin Michlmayr
29bd78ca4b Rename test since the equity command is being tested, not the option 2014-08-10 08:56:22 +02:00
Martin Michlmayr
97ab8d7aeb Define payees to get rid of trailing whitespace 2014-08-10 08:55:30 +02:00
Martin Michlmayr
45ace58847 Fix minor whitespace issues 2014-08-10 08:53:34 +02:00
tripun
5cfa1fd7c5 fixed --rich-data test 2014-08-10 08:43:26 +02:00
tripun
573fd8764b add test for --datetime-format 2014-08-10 08:43:18 +02:00
tripun
ebf9585d99 add test for --time-colon 2014-08-10 08:43:09 +02:00
tripun
095aacf39b add test for --time-report 2014-08-10 08:43:01 +02:00
tripun
e8be8f1a9b add test for --immediate 2014-08-10 08:42:55 +02:00
tripun
8eb83ecc9f add test for alternative of tail, i.e last 2014-08-10 08:42:40 +02:00
tripun
1132c78d34 add test for --date expr 2014-08-10 08:42:35 +02:00
tripun
c4ea52ac85 add tests for --detail and --rich-data 2014-08-10 08:42:28 +02:00
tripun
6ba74033de add alternative for --head , i.e --first 2014-08-10 08:42:09 +02:00
tripun
025d136974 added test for alternatives of --gain , i.e --change and -G 2014-08-10 08:41:50 +02:00
tripun
c05432b84f add test for --dc 2014-08-10 08:40:32 +02:00
Martin Michlmayr
2854ecdd19 Regenerate tests for fix for bug #713
The fix for bug #713 changes the way capital gains as well as basis costs
are shown.  All of these tests use the same input file, which includes
capital gains and losses.  The tests are too long to update and verify
manually but I verified some files and believe the output is correct.
I've therefore updated the tests with the output of the fixed ledger.

Let's take baseline/opt-lot-dates.test as one example.  In the past,
ledger generated the following incorrect Equity entries:

             190.42G  Equity
             236.83G    Capital Gains
             -46.41G    Capital Losses

If you compare the end of the diff of the test, you'll see:

  -                                                  35.42G
  +                                                -155.00G

The difference is: 35.42 - -155.00 = 190.42

This matches exactly the Equity entries previously generated, which
shouldn't be there.
2014-07-14 20:43:24 -04:00
Martin Michlmayr
ddfabe0692 Update tests for fix for bug #713
John's fix for bug #713 changes the way basis cost are calculated.
The patch also fixes #712, which caused ledger to create automatic
Equity:Capital Gains that were not correct.  Update the test cases
accordingly after verifying the new output.
2014-07-14 20:42:44 -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
b6b6a98d0d Update line numbers 2014-05-26 18:31:59 -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
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
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
0c9e188cfb Honour date-format for lot dates
Fixes bug #383
2014-05-13 00:03:39 -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
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
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
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
Craig Earls
f9da94c909 Fixes bug 514. accounts and commodities output now sorts
updated tests included.
2013-01-29 10:03:47 -07:00
Johann Klähn
b3b11bed3b Merge branch 'master' into next
Some commits were on the master branch but not yet on the next branch due to a
pull request to master after those two branches diverged. This merge
ensures that next ⊇ master.
2013-01-18 18:26:03 +01:00
Johann Klähn
d922f46595 fix bug 748: option aliases not recognized 2013-01-15 23:30:17 +01:00
Johann Klähn
49b02614a3 fix account mapping in csv conversion
By using payees_for_unknown_accounts instead of account_mappings in
csv.cc ledger will have the same behaviour as in `ledger -f - print`
in that it uses payee fields in account directives to rewrite the
account.
2012-10-18 13:45:40 -07:00
Johann Klähn
27d9d770d3 update baseline test for convert command 2012-10-13 19:47:29 +02:00
John Wiegley
afc023406a Always store absolute paths internally 2012-08-02 16:13:58 -05:00