summaryrefslogtreecommitdiff
path: root/test/regress/AFAFB804.test
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2012-03-22 19:41:06 +0000
committerMartin Michlmayr <tbm@cyrius.com>2012-03-22 19:41:06 +0000
commit10e312cb78144f4d32cde8a5588880be36c927dc (patch)
treed364744f8f2235c6ad131f0f34a7ca2063bad940 /test/regress/AFAFB804.test
parentc69701cf81766b05d494eff372e67cb7983d6bcd (diff)
downloadfork-ledger-10e312cb78144f4d32cde8a5588880be36c927dc.tar.gz
fork-ledger-10e312cb78144f4d32cde8a5588880be36c927dc.tar.bz2
fork-ledger-10e312cb78144f4d32cde8a5588880be36c927dc.zip
Add more regression tests
Diffstat (limited to 'test/regress/AFAFB804.test')
-rw-r--r--test/regress/AFAFB804.test57
1 files changed, 57 insertions, 0 deletions
diff --git a/test/regress/AFAFB804.test b/test/regress/AFAFB804.test
new file mode 100644
index 00000000..472540fb
--- /dev/null
+++ b/test/regress/AFAFB804.test
@@ -0,0 +1,57 @@
+; Test for: ledger should allow sorting by multiple criteria, like:
+; -S date,payee
+
+2010-02-09 * Z
+ A $10
+ B
+
+2010-02-09 * Y
+ B $10
+ C
+
+2010-02-09 * X
+ C $10
+ D
+
+2010-02-10 * Z
+ A $15
+ B
+
+2010-02-10 * Y
+ B $15
+ C
+
+2010-02-10 * X
+ C $15
+ D
+
+test reg -S date,payee
+10-Feb-09 X C $10 $10
+ D $-10 0
+10-Feb-09 Y B $10 $10
+ C $-10 0
+10-Feb-09 Z A $10 $10
+ B $-10 0
+10-Feb-10 X C $15 $15
+ D $-15 0
+10-Feb-10 Y B $15 $15
+ C $-15 0
+10-Feb-10 Z A $15 $15
+ B $-15 0
+end test
+
+test reg -S payee,date
+10-Feb-09 X C $10 $10
+ D $-10 0
+10-Feb-10 X C $15 $15
+ D $-15 0
+10-Feb-09 Y B $10 $10
+ C $-10 0
+10-Feb-10 Y B $15 $15
+ C $-15 0
+10-Feb-09 Z A $10 $10
+ B $-10 0
+10-Feb-10 Z A $15 $15
+ B $-15 0
+end test
+