File: cmd-xact.test

package info (click to toggle)
ledger 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,964 kB
  • sloc: cpp: 39,393; python: 4,476; perl: 1,309; sh: 477; lisp: 435; yacc: 103; makefile: 58
file content (43 lines) | stat: -rw-r--r-- 850 bytes parent folder | download | duplicates (8)
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
2012-03-23 * Test 1
    A                  $10.00
    B

2012-03-24 * Test 2
    ; Payee: Test 3
    C               20.00 EUR
    D

2012-03-25 * Test 4
    E               30.00 GBP
    F

test --now 2012/03/25 xact "Test 1"
2012/03/25 Test 1
    A                                         $10.00
    B
end test

test --now 2012/03/25 xact "Test 2"
2012/03/25 Test 2
    C                                      20.00 EUR
    D
end test

; I think this output is wrong, see bug #737
test --now 2012/03/25 xact "Test 3"
2012/03/25 Test 4
    E                                      30.00 GBP
    F
end test

test --now 2012/03/25 xact "Test 4"
2012/03/25 Test 4
    E                                      30.00 GBP
    F
end test

test xact no:such:account -> 1
__ERROR__
Error: No accounts, and no past transaction matching 'no:such:account'
end test