File: opt-explicit.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 (36 lines) | stat: -rw-r--r-- 790 bytes parent folder | download | duplicates (6)
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
account Assets:Cash
account Expenses:Phone
account Expenses:Rent
commodity GBP
tag bar

2012-03-20 * Phone
    ; :bar:
    Expenses:Phone            20.00 GBP
    Assets:Cash

2012-03-21 * Rent
    Expenses:Rent            550.00 GBP
    Assets:Cash

2012-03-22 * Food
    ; :food:
    Expenses:Food             20.00 EUR
    Assets:Cash

test bal --explicit --strict
          -20.00 EUR
         -570.00 GBP  Assets:Cash
           20.00 EUR
          570.00 GBP  Expenses
           20.00 EUR    Food
           20.00 GBP    Phone
          550.00 GBP    Rent
--------------------
                   0
__ERROR__
Warning: "$FILE", line 18: Unknown account 'Expenses:Food'
Warning: "$FILE", line 18: Unknown commodity 'EUR'
Warning: "$FILE", line 19: Unknown metadata tag 'food'
end test