mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
fix assert to return true value.
* module/rnrs/base.scm (assert): returns value instead of void. * test-suite/tests/r6rs-base.test ("assert"): add test cases.
This commit is contained in:
parent
cf9d4a8214
commit
15993bce1c
2 changed files with 9 additions and 1 deletions
|
@ -175,7 +175,7 @@
|
|||
(define-syntax assert
|
||||
(syntax-rules ()
|
||||
((_ expression)
|
||||
(if (not expression)
|
||||
(or expression
|
||||
(raise (condition
|
||||
(make-assertion-violation)
|
||||
(make-message-condition
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue