mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[test-standard-category-report] Add test for allocation ratios
This commit is contained in:
parent
fd70c88423
commit
3229839055
@ -243,6 +243,16 @@
|
||||
(test-equal "auto"
|
||||
'("Auto")
|
||||
(sxml->table-row-col sxml 1 0 2))
|
||||
|
||||
;; test ratios
|
||||
(set-option expense-options gnc:pagename-display "Replace amounts with percentage ratios." #t)
|
||||
(let ((sxml (gnc:options->sxml expense-report-uuid expense-options
|
||||
"test-standard-category-report"
|
||||
"ratios"
|
||||
#:strip-tag "script")))
|
||||
(test-equal "multi-acct ratios"
|
||||
'("57.14 %" "14.29 %" "14.29 %" "14.29 %" "$14.00")
|
||||
(cdr (sxml->table-row-col sxml 1 2 #f))))
|
||||
(test-end "multi-acct-test"))))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user