adjust the unit contract tests for the new contract error messages
This commit is contained in:
parent
8739f15057
commit
b66f716374
|
@ -15,10 +15,10 @@
|
|||
|
||||
(define (get-ctc-err msg)
|
||||
(cond
|
||||
[(regexp-match #rx"contract violation, ([^\n]*)\n" msg)
|
||||
[(regexp-match #rx"contract violation\n *([^\n]*)\n" msg)
|
||||
=>
|
||||
(λ (x) (cadr x))]
|
||||
[(regexp-match #rx"self-contract violation, ([^\n]*)\n" msg)
|
||||
[(regexp-match #rx"self-contract violation\n *([^\n]*)\n" msg)
|
||||
=>
|
||||
(lambda (x) (cadr x))]
|
||||
[else (error 'test-contract-error
|
||||
|
|
Loading…
Reference in New Issue
Block a user