tripun
e94efddfb6
add unit test Ceiling for balance_t
2014-08-11 21:01:25 +05:30
tripun
264f8c553c
add unit test Absolute for balance_t
2014-08-11 21:01:25 +05:30
tripun
c24fbd6dfb
add unit test negation for balance_t
2014-08-11 21:01:25 +05:30
tripun
763c8c1162
add unit test for balance division
2014-08-11 21:01:25 +05:30
tripun
2db0bc9bf9
add test for multiplication
2014-08-11 21:01:25 +05:30
tripun
b9aef7b1ec
edited subraction test
2014-08-11 21:01:24 +05:30
tripun
fe91656aa1
add Equality unit test for balance
2014-08-11 21:01:24 +05:30
tripun
57877bf062
added boost subtraction unit test
2014-08-11 21:01:24 +05:30
tripun
696440e735
added balance addition unit test
2014-08-11 21:01:24 +05:30
tripun
6f39d1169d
add balance Test constructors
2014-08-11 21:01:24 +05:30
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
a44572f3ec
Add a regression test for bug #712
2014-07-14 20:44:48 -04:00
Martin Michlmayr
7241b1f62b
Add regression tests for bug #713
2014-07-14 20:44:05 -04: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
e7ed889872
Add regression test for commit de17ccf1
...
Add regression test for commit de17ccf1 (" When a status flag (! or *) is
explicitly specified for an individual…")
2014-06-30 19:41:38 -04:00
Martin Michlmayr
23902686a3
Don't lose commodity when cost is not separated by whitespace
...
When a cost was specified without a whitespace after the @ symbol,
as in @$5.01, this was incorrectly parsed as 5.01 (losing the
commodity) rather than $5.01.
Bug fix for #1050
2014-06-05 19:46:22 -04:00
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