blob: ceb36e7fba5a0e564754a5e61cb3865c7b081d8a (
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
|
test format "%-12(scrub(amount))"
--- Context is first posting of the following transaction ---
2004/05/27 Book Store
; This note applies to all postings. :SecondTag:
Expenses:Books 20 BOOK @ $10
; Metadata: Some Value
; Typed:: $100 + $200
; :ExampleTag:
; Here follows a note describing the posting.
Liabilities:MasterCard $-200.00
--- Input format string ---
%-12(scrub(amount))
--- Format elements ---
Element: EXPR flags: 0x1 min: 12 max: 0 expr: scrub(amount)
--- Formatted string ---
"20 BOOK "
end test
test format "%12(scrub(amount))"
--- Context is first posting of the following transaction ---
2004/05/27 Book Store
; This note applies to all postings. :SecondTag:
Expenses:Books 20 BOOK @ $10
; Metadata: Some Value
; Typed:: $100 + $200
; :ExampleTag:
; Here follows a note describing the posting.
Liabilities:MasterCard $-200.00
--- Input format string ---
%12(scrub(amount))
--- Format elements ---
Element: EXPR flags: 0x0 min: 12 max: 0 expr: scrub(amount)
--- Formatted string ---
" 20 BOOK"
end test
|