| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Fixes #999
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This is pretty much exclusively for allowing one to use balance
assertions with replicated transactions across multiple files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
to be used as single ledger data for an example command
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
| |
and bucket
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
This reverts commit 7183dabc84362a745bf0381cd1cceb303338565f.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #712
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This test appears to test the garbage input handling on ledger.
garbage-input.dat has been added to the test directory for use by this
test, allowing development with amount.h to proceed without tripping
this particular test inappropriately
|
|
|
|
| |
updated tests included.
|
|\
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
This fixes bug #736.
|
| | |
|
| |
| |
| |
| | |
This fixes bug #733 and bug #734.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
For `-f /dev/stdin`, the `pathname` of the parsing context will be empty
as for any other streamed input.
`instance_t::include_directive` did not work as expected for `-f /dev/stdin`
and relative file names. One would expect them to be relative to the current
directory rather than `/dev`.
This will lead to `While parsing file ""` messages. This could be
adjusted to read `While parsing standard input`, but maybe it's not
worth the special cases.
This commit also fixes bug 788: behaviour of source_context for '-f -'
|
| | |
|
| | |
|
| |
| |
| |
| | |
This reverts commit 0a1ff035421d5f97675ad769a7fcdbc68399f3dc.
|
| | |
|
| |
| |
| |
| |
| |
| | |
`session_t::read_data` did not set context.pathname to `/dev/stdin`
for the special case `-f -`. I chose to adjust `source_context` too
as there is no sensible context if no file name is provided.
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
ledger would abort with the following error message:
TypeError: No Python class registered for C++ class boost::optional<std::string>
The changes pass a CallPolicy to make_getter when adding the transaction
code property for python, so that the correct to_python conversion is
made. For details see:
http://www.boost.org/doc/libs/1_52_0/libs/python/doc/v2/faq.html#topythonconversionfailed
|
|/ / |
|
|\ \
| | |
| | | |
fix bucket directive (bug 765)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This was caused by both 'A' and 'bucket' using
default_account_directive. This function was still stripping the 'A'
directive, so the first character of the account name used with 'bucket'
was cut off. Maybe the code for the other directives should be changed
accordingly for consistency (put line + 1 in call instead of function).
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If the command line switch "-f" is used the test runner will
not pass the file name of the test file to ledger.
The line "test -f /dev/null" as used in test/baseline/cmd-convert.test
did not work as intended before this.
Also using "-f - " did not work as "$ledger" was noti
prepended to the command.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
test/regress/CAE63F5C-b.test and test/regress/CAE63F5C-c.test should both
pass, but test/regress/CAE63F5C-c.test does not, because the total line of
$6.46 is rounded wrong; it should be $6.45.
There seems to be different rounding occurring for totals vs. postings.
This seems to be related to Bug #492.
|