blob: 472540fb259f4360508cdbc974e325a3d93f340c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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
|