adjust covered-cases so that it always returns deterministically

(sorting by the strings in the result)
This commit is contained in:
Robby Findler 2012-02-01 22:15:15 -06:00
parent 4e075a1f63
commit 8bec634dcd

View File

@ -1238,7 +1238,9 @@
(λ (c) (cons (car c) (add1 (cdr c))))))
(define (covered-cases cov)
(hash-map (coverage-counts cov) (λ (k v) v)))
(sort (hash-map (coverage-counts cov) (λ (k v) v))
string<=?
#:key car))
(define-struct coverage (relation counts))