Mitchell Kember
d082b6485f
Fix Bug 1147: Check balance assertions against the amount AFTER
2016-03-22 23:09:27 -07:00
John Wiegley
16c2b8d58d
Merge pull request #449 from ppickfor/next
...
Use interval start date (period from/since) to initialize first period.
2016-03-14 12:03:24 -07:00
Peter Pickford
a0b68905ef
days - do not stabalize periods spacified in days
...
weeks - calculate start date for finding period using remainer 400/periodlength to reduce number of iterations (perhaps this ought to follow the same conventio as years months and quarters)
add sample period command tests
add add day period tests for forecasts and budgets
add week period tests for forecasts and budgets - these do not change
2016-03-13 17:19:46 -07:00
Peter Pickford
97ec24544e
Periods should be initialized from from/since clause rather than earliest transaction date
...
Bug 1159
Use interval start date (period from/since) to initialize first period.
This allows the offset of a period start to be specified
-p 'every 12 months from 2000-04-01'
will have periods
yyyy-04-01 to yyyy-03-31
....
If no from/since is specified for the period the first transaction date reported is used to initialize the period as before.
added test case regress/1159.test
2016-03-09 16:00:10 -08:00
Martin Michlmayr
b7f84d6900
Fix test suite failure
...
I'm sure I used $FILE for the final version but I must have committed
an old version.
2016-02-16 12:22:50 -08:00
Martin Michlmayr
c5f68caa9e
Increase maximum length for regex
...
Fixes bug #981
2016-02-15 13:58:18 -08:00
Alexis Hildebrandt
0bbb4f2f0c
[python] Remove double quotes from unicode values
...
When converting a ledger.Value to unicode the Python API added
double quotes around it.
2016-01-11 21:38:32 +01:00
Alexis Hildebrandt
9892878ca1
[misc] Update year in copyright notice to 2016
...
[ci skip]
2016-01-02 12:09:54 +01:00
Martin Michlmayr
7eacf51308
Always use plurar Expenses: for consistency
2015-12-14 13:54:16 -08:00
Alexis Hildebrandt
d97b834107
[tests] Fix empty testfile check
2015-10-27 18:16:24 +01:00
Alexis Hildebrandt
32eca73479
[tests] Remove compiler warnings for unit tests
...
warning: equality comparison result unused [-Wunused-comparison]
BOOST_CHECK_THROW(v8 == v10, value_error);
~~~^~~~~~
2015-09-15 16:34:59 +02: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
Alexis Hildebrandt
64b285d583
[tests] Fix MathTest failures on Mac OS X
...
due to timezone settings.
2015-08-08 00:55:19 +02:00
Alexis Hildebrandt
fe410fa239
[tests] Set timezone for running tests
...
so that the tests run with a consistent environment.
2015-08-07 19:42:23 +02:00
John Wiegley
1019f92a82
Merge pull request #424 from thdox/bug-1057
...
Add regression test file for bug #1057
2015-08-04 16:20:54 -07:00
Alexis Hildebrandt
8d351d1b4c
[tests] Ignore --revalued-total in baseline tests
2015-08-05 00:09:01 +02:00
John Wiegley
a3e946f90f
Merge remote-tracking branch 'origin/master' into next
2015-08-04 14:33:03 -07:00
John Wiegley
00e4cdb008
Merge pull request #317 from tripun/code_coverage
...
Add some unit tests for value_t
2015-08-04 14:14:44 -07:00
thdox
fb5a1bed5c
Add --file to tested options.
2015-07-31 22:51:55 +02:00
thdox
4451452db3
Fix test file regress/25A099C9.test.
2015-07-31 22:51:55 +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
thdox
48bd8e94de
Modification to help fix issue when compiling with travis
...
-(("/home/travis/build/ledger/ledger/test/regress/1057.test" 1 (21308 34912 0) nil "www.amazon.fr"
+(("/home/travis/build/ledger/ledger/test/regress/1057.test" 1 (21308 42112 0) nil "www.amazon.fr"
2015-07-31 22:51:48 +02:00
thdox
f0a329db26
regression test file for bug 1057
2015-07-31 22:51:48 +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
Martin Michlmayr
b60a12a6ce
Add missing known functions to test
2015-07-28 17:30:00 -04:00
Alexis Hildebrandt
c4db52614e
[travis] Run documentation checks as reports
...
which are allowed to fail instead of strict tests.
2015-07-28 23:28:41 +02:00
Alexis Hildebrandt
69fa2fc671
[tests] Remove compiler warnings for unit tests
...
warning: relational comparison result unused [-Wunused-comparison]
BOOST_CHECK_THROW(x6 < x7, amount_error);
~~~^~~~
2015-07-28 22:43:16 +02:00
Alexis Hildebrandt
68ecc043cc
[tests] Allow string continuation in documentation
...
in long documentation examples.
2015-07-28 22:07:10 +02:00
Alexis Hildebrandt
f5d59159f1
[tests] Fix Util and Math tests on Mac OS X
...
by explicitly linking the testing targets against Python
2015-07-28 20:54:44 +02:00
thdox
befb06f941
Add --generated to untested options list.
...
--generated will generate each time new entries, this cannot be
reproduced safely.
2015-03-23 23:35:07 +01:00
thdox
2bcfb0df5a
Add --verify-memory to untested options.
...
This --verify-memory option is very system (Linux/Mac) dependent on how
the memory is allocated. This cannot be reproduce with same results.
2015-03-23 23:35:07 +01:00
thdox
57bd08efce
Add --revalued-total to "to be tested" options.
...
I have not yet understood the meaning of --revalued-total, but as it
output something, it should be tested. So add it to "to be tested"
options list.
2015-03-23 23:35:07 +01:00
thdox
6abcf2109d
Fix baseline test for --no-pager.
2015-02-25 19:01:30 +01: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
72cb48727d
Add --no-pager to untested options of CheckBaselineTests.py
...
As per comment in Pull Request #382
2015-02-24 19:27:07 +01:00
thdox
83bde60ec1
Remove --*help* from untested options in CheckBaselineTests.py
...
As per commit f59abd4c76
2015-02-24 19:26:50 +01:00
thdox
fce467fba9
Remove --cache from untested options in CheckBaselinetests.py
...
As per commit d5e1308d07
2015-02-24 19:26:28 +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