diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-05-30 23:46:20 -0400 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-05-30 23:52:36 -0400 |
commit | a5ffcc42ff2d6f6d06141b5098337f4bc092d2e0 (patch) | |
tree | d3c79eb8cbc5dbb853acce381374efc207d1089d /test/regress/755.test | |
parent | 53b8aa8802a590f0139355fa0a4e3857f39d9836 (diff) | |
download | fork-ledger-a5ffcc42ff2d6f6d06141b5098337f4bc092d2e0.tar.gz fork-ledger-a5ffcc42ff2d6f6d06141b5098337f4bc092d2e0.tar.bz2 fork-ledger-a5ffcc42ff2d6f6d06141b5098337f4bc092d2e0.zip |
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
Diffstat (limited to 'test/regress/755.test')
-rw-r--r-- | test/regress/755.test | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/test/regress/755.test b/test/regress/755.test new file mode 100644 index 00000000..9581debc --- /dev/null +++ b/test/regress/755.test @@ -0,0 +1,90 @@ + +; Test backwards compatibility with ledger2 + +--date-format %Y/%m/%d + +2009-04-17 * Test 1 + A 10.00 EUR + B + +2009-04-18=2010-04-20 (110) Test 2 + * C 20.00 EUR ;foo + * B + +test -F "%a\n" reg +A +B +C +B +end test + +test -F "%A\n" reg +A +B +C +B +end test + +test -F "%d\n" reg +2009/04/17 +2009/04/17 +2009/04/18=2010/04/20 +2009/04/18=2010/04/20 +end test + +test -F "%D\n" reg +2009/04/17 +2009/04/17 +2009/04/18 +2009/04/18 +end test + +test -F "%S\n" reg +$FILE +$FILE +$FILE +$FILE +end test + +test -F "%b\n" reg +7 +8 +11 +12 +end test + +test -F "%B\n" reg +90 +126 +168 +209 +end test + +test -F "%X%P\n" reg +* Test 1 +* Test 1 +* Test 2 +* Test 2 +end test + +test -F "%Y%P\n" reg +* Test 1 +* Test 1 +Test 2 +Test 2 +end test + +test -F "%C%P\n" reg +Test 1 +Test 1 +(110) Test 2 +(110) Test 2 +end test + +test -F "%N\n" reg + + +foo + +end test + |