File tree 1 file changed +16
-14
lines changed
rackunit-lib/rackunit/private
1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change 93
93
(define-simple-macro (make-check-func (name:id formal:id ... ) #:public-name pub:id body:expr ... )
94
94
(λ (#:location [location (list 'unknown #f #f #f #f )]
95
95
#:expression [expression 'unknown ]
96
- #:check-around [check-around current-check-around])
96
+ #:check-around [check-around ( current-check-around) ])
97
97
(procedure-rename
98
98
(λ (formal ... [message #f ])
99
99
(define infos
115
115
(syntax-parse stx
116
116
[(chk . args)
117
117
#`(let ([location (syntax->location #'loc )])
118
- (with-default-check-info*
119
- (list (make-check-name 'name )
120
- (make-check-location location)
121
- (make-check-expression '(chk . args)))
122
- #,(syntax/loc #'loc
123
- (λ ()
124
- ((current-check-around)
125
- (λ ()
126
- ((check-impl #:location location
127
- #:expression '(chk . args)
128
- #:check-around (λ () (λ (f) (f))))
129
- . args)))))))]
130
- [chk:id
118
+ #,(syntax/loc #'loc
119
+ (λ ()
120
+ ((current-check-around)
121
+ (λ ()
122
+ (call-with-values
123
+ (lambda ()
124
+ (with-default-check-info*
125
+ (list (make-check-name 'name )
126
+ (make-check-location location)
127
+ (make-check-expression '(chk . args)))
128
+ (values . args)))
129
+ (check-impl #:location location
130
+ #:expression '(chk . args)
131
+ #:check-around (λ (f) (f)))))))))]
132
+ [chk:id
131
133
#'(check-impl #:location (syntax->location #'loc )
132
134
#:expression 'chk )])))))
133
135
You can’t perform that action at this time.
0 commit comments