From a5ffcc42ff2d6f6d06141b5098337f4bc092d2e0 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Fri, 30 May 2014 23:46:20 -0400 Subject: 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 --- test/regress/755.test | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 test/regress/755.test (limited to 'test/regress/755.test') 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 + -- cgit v1.2.3