File: feat-balance_assert-off.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 (18 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

2014-05-01 * Opening balance
    Assets:Cash          $100
    Equity:Opening balance

2014-05-10 * Spend money
    Expenses:Foo          $10
    Assets:Cash          -$10 = $80

test bal -> 1
__ERROR__
While parsing file "$FILE", line 8:
While parsing posting:
  Assets:Cash          -$10 = $80
                              ^^^
Error: Balance assertion off by $-10 (expected to see $90)
end test