Skip to content

Commit

Permalink
[test-stress-options] ensure max is not called with empty list
Browse files Browse the repository at this point in the history
some reports e.g. sample-graphs.scm may have no options; this commit
causes max to be called with at least 1 parameter (max 0) --> 0.
  • Loading branch information
christopherlam committed Jun 16, 2019
1 parent 7306f2d commit 3b9233d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gnucash/report/reports/standard/test/test-stress-options.scm
Expand Up @@ -141,8 +141,9 @@
#f))))
(iota
(apply max
(map (lambda (opt) (length (vector-ref opt 3)))
report-options)))
(cons 0
(map (lambda (opt) (length (vector-ref opt 3)))
report-options))))
)))

(define (combinatorial-stress-test report-name uuid report-options)
Expand Down

0 comments on commit 3b9233d

Please sign in to comment.