#lang scheme/base
(require scheme/contract
"../era/era.ss"
"annotation.ss"
"result.ss")
(define-annotation ann:attrs
(lambda (result)
null)
(lambda (result old new)
(append old new)))
(define (check-result-attributes result)
(hash-ref (check-result-annotations result) ann:attrs null))
(define (check-result-has-attribute? result attr)
(and (memq attr (check-result-attributes result)) #t))
(provide/contract
[ann:attrs annotation?]
[check-result-attributes (-> check-result? (listof attribute?))]
[check-result-has-attribute? (-> check-result? attribute? boolean?)])