Organize the errortrace tests.
This commit is contained in:
parent
15aeb099ea
commit
d8029e4fca
|
@ -18,5 +18,8 @@
|
|||
(lambda (stx)
|
||||
(with-syntax ([b b])
|
||||
#'(lambda () (set-mcar! b (add1 (mcar b))) (mcar b))))))
|
||||
(let ([f m])
|
||||
|
||||
(provide alert-tests)
|
||||
(define (alert-tests)
|
||||
(define f m)
|
||||
(test (list (f) (f) (f)) => '(1 2 3)))
|
||||
|
|
4
collects/tests/errortrace/info.rkt
Normal file
4
collects/tests/errortrace/info.rkt
Normal file
|
@ -0,0 +1,4 @@
|
|||
#lang setup/infotab
|
||||
|
||||
;; "alert.rkt" cannot be compiled
|
||||
(define compile-omit-paths 'all)
|
7
collects/tests/errortrace/main.rkt
Normal file
7
collects/tests/errortrace/main.rkt
Normal file
|
@ -0,0 +1,7 @@
|
|||
#lang racket/base
|
||||
|
||||
(require tests/eli-tester "wrap.rkt" "alert.rkt")
|
||||
|
||||
(wrap-tests)
|
||||
|
||||
(test do (alert-tests))
|
|
@ -19,7 +19,10 @@
|
|||
out-str)
|
||||
(error 'test "not in context for: ~s" (syntax->datum expr))))
|
||||
|
||||
(provide wrap-tests)
|
||||
(define (wrap-tests)
|
||||
(try #`(begin (module m racket/base #,err-stx) (require 'm)))
|
||||
(try err-stx)
|
||||
(try #`(syntax-case 'a ()
|
||||
(_ #,err-stx)))
|
||||
(void))
|
||||
|
|
Loading…
Reference in New Issue
Block a user