Add assert-unspecified to literals in define-test
This commit is contained in:
parent
41b2467b42
commit
96d406d98b
@ -13,7 +13,7 @@
|
|||||||
(lambda (stx)
|
(lambda (stx)
|
||||||
(with-syntax ([fail (datum->syntax stx 'fail)])
|
(with-syntax ([fail (datum->syntax stx 'fail)])
|
||||||
(define (assert-stx expr)
|
(define (assert-stx expr)
|
||||||
(syntax-case expr (assert-equal assert-not-equal)
|
(syntax-case expr (assert-equal assert-not-equal assert-unspecified)
|
||||||
[(assert-equal e a) #'(assert e a equal? fail)]
|
[(assert-equal e a) #'(assert e a equal? fail)]
|
||||||
[(assert-not-equal e a) #'(assert e a (compose not equal?) fail)]
|
[(assert-not-equal e a) #'(assert e a (compose not equal?) fail)]
|
||||||
[(assert-unspecified v) #'(assert (when #f 'a) v eq? fail)]
|
[(assert-unspecified v) #'(assert (when #f 'a) v eq? fail)]
|
||||||
|
Loading…
Reference in New Issue
Block a user