Commit graph

249 commits

Author SHA1 Message Date
Michael Budde
6b998aee10 Add support for --prepend-format in accounts command
Add support for the `--prepend-format` and `--prepend-width` options in
the `accounts` command.
2018-01-25 19:27:24 +01:00
Alexander Pletnev
9faed90dc2 typo in docs
fix test
2017-01-27 22:07:01 +03:00
Martin Michlmayr
b6392fa40f Update cmd-tags.test for fix for bug #1043 2016-11-12 18:57:21 -08:00
thdox
5b70d4e5e4 Add test for --color option 2016-10-27 22:05:49 +02:00
thdox
cc59fa9efe Add another test to opt-force-color.test
To verify that no ANSI color codes are printed when the --force-color
option is not set.
2016-10-27 22:05:49 +02:00
thdox
b3174a8ff9 --force-color is now tested in CheckBaselinetests.py 2016-10-27 22:05:49 +02:00
thdox
0fce4e831e --force-color does not require anymore --color.
This was reported as Bug #1109
2016-10-27 22:05:49 +02:00
Mitchell Kember
d082b6485f Fix Bug 1147: Check balance assertions against the amount AFTER 2016-03-22 23:09:27 -07:00
thdox
b91b74fc43 Rename feat-fixated-prices_2.test to dir-fixed.test
For consistency as this is a directive.
2015-08-08 11:59:28 +02:00
thdox
89119c68ca Whitespace fix for cmd-convert.test 2015-07-31 22:51:54 +02:00
thdox
4cad4b327d Revert "Disable three tests preventing Jenkins from succeeding"
This reverts commit 8d1067c89c.
2015-07-31 22:51:54 +02:00
Alexis Hildebrandt
3008a6a6be [tests] Fix typo in --cleared option baseline test 2015-07-31 00:25:53 +02:00
Martin Michlmayr
09f61ded0f Fix description 2015-07-30 18:06:48 -04:00
Martin Michlmayr
4e12580789 Add test for --value-expr
See John's email "A solution to the commodity pricing problem" on how
this works:
https://groups.google.com/forum/#!topic/ledger-cli/gpOW50XtCTo
2015-07-30 17:44:32 -04:00
Martin Michlmayr
61995d6a20 Add test for --no-rounding 2015-07-30 17:41:40 -04:00
Alexis Hildebrandt
3d1c59aa81 [tests] Add baseline test for --cleared-format 2015-07-30 13:35:32 +02:00
Alexis Hildebrandt
dd3d28f7b6 [tests] Remove empty baseline test files.
The --generated and --verify-memory options are already ignored by
CheckBaselineTests.py

The --no-pager and --no-rounding options currently fail and need
a proper baseline test or be ignored in CheckBaselineTests.py.
2015-07-29 15:38:32 +02:00
Martin Michlmayr
852ece54fe Add baseline test for --no-revalued option 2015-07-28 17:46:42 -04:00
Martin Michlmayr
2c8c6524bd Improve --explicit test case
Since --explicit tells ledger to require pre-declarations to establish
"known-ness" (rather than taking it from cleared transactions), make
sure the transactions are cleared.
2015-07-28 17:31:14 -04:00
Alexis Hildebrandt
5e6d5e33af Merge pull request #396 from thdox/auto-match
Fix Auto match
2015-02-24 20:27:30 +01:00
Alexis Hildebrandt
7358ced548 Merge pull request #401 from thdox/baseline-tests
Improve baseline tests
2015-02-24 19:54:33 +01:00
thdox
df944929f8 Add baseline test for --price-db option. 2015-02-24 19:27:07 +01:00
thdox
e6a967b860 Add baseline test for --script option. 2015-02-24 19:27:07 +01:00
thdox
ddf17b6246 Add baseline test for --init-file option. 2015-02-24 19:25:18 +01:00
thdox
73e3ecc6b8 Fix alignment of cleared-format with 4 spaces as separator. 2015-02-23 23:31:21 +01:00
thdox
788ffc2a4b Update test for --auto-match option. 2015-02-22 16:51:57 +01:00
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