mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
Show source for failed expected value.
This commit is contained in:
parent
7ac3cfebe1
commit
47f7ab01cf
1 changed files with 2 additions and 1 deletions
|
@ -174,6 +174,7 @@
|
|||
(test-run (lambda () expect)
|
||||
(lambda () expr)
|
||||
`((name . ,n)
|
||||
(expect-source . expect)
|
||||
(source . expr)
|
||||
(var-names . (vars ...))
|
||||
(var-values . ,(list vars ...))
|
||||
|
@ -528,7 +529,7 @@
|
|||
(guard
|
||||
(exn
|
||||
(else
|
||||
(warning "bad expect value")
|
||||
(warning "bad expect value" (assq-ref info 'expect-source))
|
||||
(print-exception exn (current-error-port))
|
||||
#f))
|
||||
(expect))))
|
||||
|
|
Loading…
Add table
Reference in a new issue