summaryrefslogtreecommitdiff
path: root/test/regress
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/755.test90
-rw-r--r--test/regress/C19E4E9B.test2
2 files changed, 91 insertions, 1 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
+
diff --git a/test/regress/C19E4E9B.test b/test/regress/C19E4E9B.test
index 4837b4cd..822e3f0e 100644
--- a/test/regress/C19E4E9B.test
+++ b/test/regress/C19E4E9B.test
@@ -6,7 +6,7 @@
A 1 AAA @ 2.00 EUR
B -2.00 EUR
-test reg --format "%S: %d %P %t %T\n"
+test reg --format "%S: %D %P %t %T\n"
$FILE: 2012/01/01 Buy AAA 1 AAA 1 AAA
$FILE: 2012/01/01 Buy AAA -1.00 EUR 1 AAA
-1.00 EUR