original commit: 85f2edea57ebd37afc45c8cc700988a089212bea
This commit is contained in:
Robby Findler 2002-08-27 03:42:20 +00:00
parent 3dce14aa40
commit c57f3501b3

View File

@ -17,7 +17,7 @@
(define (test/spec-failed name expression blame)
(define (failed-contract x)
(and (string? x)
(let ([m (regexp-match ": (.*) failed contract:" x)])
(let ([m (regexp-match ": ([^ ]*) broke" x)])
(and m (cadr m)))))
(test blame
failed-contract