F559EC12.test 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. test format "%-12(scrub(amount))"
  2. --- Context is first posting of the following transaction ---
  3. 2004/05/27 Book Store
  4. ; This note applies to all postings. :SecondTag:
  5. Expenses:Books 20 BOOK @ $10
  6. ; Metadata: Some Value
  7. ; Typed:: $100 + $200
  8. ; :ExampleTag:
  9. ; Here follows a note describing the posting.
  10. Liabilities:MasterCard $-200.00
  11. --- Input format string ---
  12. %-12(scrub(amount))
  13. --- Format elements ---
  14. Element: EXPR flags: 0x1 min: 12 max: 0 expr: scrub(amount)
  15. --- Formatted string ---
  16. "20 BOOK "
  17. end test
  18. test format "%12(scrub(amount))"
  19. --- Context is first posting of the following transaction ---
  20. 2004/05/27 Book Store
  21. ; This note applies to all postings. :SecondTag:
  22. Expenses:Books 20 BOOK @ $10
  23. ; Metadata: Some Value
  24. ; Typed:: $100 + $200
  25. ; :ExampleTag:
  26. ; Here follows a note describing the posting.
  27. Liabilities:MasterCard $-200.00
  28. --- Input format string ---
  29. %12(scrub(amount))
  30. --- Format elements ---
  31. Element: EXPR flags: 0x0 min: 12 max: 0 expr: scrub(amount)
  32. --- Formatted string ---
  33. " 20 BOOK"
  34. end test