summaryrefslogtreecommitdiff
path: root/test/regress/F559EC12.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress/F559EC12.test')
-rw-r--r--test/regress/F559EC12.test43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/regress/F559EC12.test b/test/regress/F559EC12.test
new file mode 100644
index 00000000..c8b686db
--- /dev/null
+++ b/test/regress/F559EC12.test
@@ -0,0 +1,43 @@
+format "%-12(scrub(amount))"
+<<<
+>>>1
+--- 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
+ ; :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 "
+>>>2
+=== 0
+format "%12(scrub(amount))"
+>>>1
+--- 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
+ ; :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"
+>>>2
+=== 0