File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change 163163
164164(define (just-one p*)
165165 (define-values (path p b) (split-path p*))
166+ (define dir (path->string path))
166167 (define f
167- (let ([dir (path->string path)])
168- (cond [(regexp-match? #rx"fail/ " dir )
169- (lambda (p thnk)
170- (define-values (pred info) (exn-pred p))
171- (parameterize ([error-display-handler void])
172- (with-check-info
173- (['predicates info])
174- (check-exn pred thnk))))]
175- [(regexp-match? #rx"succeed/ " dir)
176- (lambda (p thnk) (check-not-exn thnk))]
177- [(regexp-match? #rx"optimizer/tests/$ " dir)
178- (lambda (p* thnk) (test-opt p))]
179- [(regexp-match? #rx"optimizer/missed-optimizations/$ " dir)
180- (lambda (p* thnk) (test-missed-optimization p))]
181- [else
182- (error 'just-one "Unknown test kind for test: ~a " p*)])))
168+ (cond
169+ [(regexp-match? #rx"fail/ " dir)
170+ (lambda (p thnk)
171+ (define-values (pred info) (exn-pred p))
172+ (parameterize ([error-display-handler void])
173+ (with-check-info (['predicates info]) (check-exn pred thnk))))]
174+ [(regexp-match? #rx"succeed/ " dir) (lambda (p thnk) (check-not-exn thnk))]
175+ [(regexp-match? #rx"optimizer/tests/$ " dir) (lambda (p* thnk) (test-opt p))]
176+ [(regexp-match? #rx"optimizer/missed-optimizations/$ " dir)
177+ (lambda (p* thnk) (test-missed-optimization p))]
178+ [else (error 'just-one "Unknown test kind for test: ~a " p*)]))
183179 (test-suite
184180 (path->string p)
185181 (f
You can’t perform that action at this time.
0 commit comments