summaryrefslogtreecommitdiff
path: root/test/regress/AFAFB804.test
diff options
context:
space:
mode:
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
+