svn: r13276
This commit is contained in:
Eli Barzilay 2009-01-25 03:35:37 +00:00
parent 4288ba636e
commit c79acd6f61

View File

@ -39,7 +39,7 @@
#,(blame x "expected non-#f single value; got: ~a" #'(show x)))))
(define (t2 x y)
#`(let ([x (safe #,x)] [y (safe #,y)])
(cond [(and (eq? 'error (car y)) (eq? 'values (car x)))
(cond [(and (eq? 'values (car x)) (eq? 'error (car y)))
#,(blame x "expected an error; got ~a" #'(show x))]
[(and (eq? 'error (car x)) (eq? 'error (car y)))
(unless (regexp-match (regexp-quote (cadr y)) (cadr x))