a fix to the way check-expect expands to play better with test coverage

svn: r13232
This commit is contained in:
Robby Findler 2009-01-19 21:24:21 +00:00
parent 62993e9df3
commit 146e8733cc

View File

@ -62,8 +62,7 @@
(syntax-column stx) (syntax-column stx)
(syntax-position stx) (syntax-position stx)
(syntax-span stx))))) (syntax-span stx)))))
(quasisyntax/loc test-expr #`(define #,bogus-name
(define #,bogus-name
#,(stepper-syntax-property #,(stepper-syntax-property
#`(let ([test-info (namespace-variable-value #`(let ([test-info (namespace-variable-value
'test~object #f builder (current-namespace))]) 'test~object #f builder (current-namespace))])
@ -76,7 +75,9 @@
['stepper-use-val-as-final #t]) ['stepper-use-val-as-final #t])
(quasisyntax/loc stx (quasisyntax/loc stx
(#,checker-proc-stx (#,checker-proc-stx
(car (list
(lambda () #,test-expr) (lambda () #,test-expr)
#,(syntax/loc stx (void))))
#,@embedded-stxes #,@embedded-stxes
#,src-info #,src-info
#,(with-stepper-syntax-properties #,(with-stepper-syntax-properties
@ -88,7 +89,7 @@
skipto/third skipto/second ;; unless (it expands into a begin) skipto/third skipto/second ;; unless (it expands into a begin)
skipto/cdr skipto/third ;; application of insert-test skipto/cdr skipto/third ;; application of insert-test
'(syntax-e cdr cdr syntax-e car) ;; lambda '(syntax-e cdr cdr syntax-e car) ;; lambda
))))) ))))
(define-for-syntax (check-context?) (define-for-syntax (check-context?)
(let ([c (syntax-local-context)]) (let ([c (syntax-local-context)])