Organize the errortrace tests.

This commit is contained in:
Eli Barzilay 2011-08-29 16:07:42 -04:00
parent 15aeb099ea
commit d8029e4fca
4 changed files with 22 additions and 5 deletions

View File

@ -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)))

View File

@ -0,0 +1,4 @@
#lang setup/infotab
;; "alert.rkt" cannot be compiled
(define compile-omit-paths 'all)

View File

@ -0,0 +1,7 @@
#lang racket/base
(require tests/eli-tester "wrap.rkt" "alert.rkt")
(wrap-tests)
(test do (alert-tests))

View File

@ -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))