[test-standard-category-report] Add test for allocation ratios

This commit is contained in:
Christopher Lam 2022-02-22 16:30:41 +08:00
parent fd70c88423
commit 3229839055

View File

@ -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"))))