File: align-amounts.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 (24 lines) | stat: -rw-r--r-- 958 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; Amounts should still align even though the account names are much longer than
; the default --account-width.

2023/01/01 Transaction with short account names
    Assets:Short  -10 ABC
    Assets:Short  -10 ABC
    Expenses:Short  20 ABC

2023/01/01 Transaction with long account names
    Assets:Very:Long:Account:Name:That:Will:Push:The:Amount   -10 ABC
    Assets:Another:Long:Account:Name:That:Will:Push:The:Amount   -10 ABC
    Expenses:Short  20 ABC

test print
2023/01/01 Transaction with short account names
    Assets:Short                             -10 ABC
    Assets:Short                             -10 ABC
    Expenses:Short                            20 ABC

2023/01/01 Transaction with long account names
    Assets:Very:Long:Account:Name:That:Will:Push:The:Amount        -10 ABC
    Assets:Another:Long:Account:Name:That:Will:Push:The:Amount     -10 ABC
    Expenses:Short                                                  20 ABC
end test