mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-16 17:37:34 +02:00
adding test-not
This commit is contained in:
parent
d7c6275b07
commit
000c69e904
2 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
|
||||
(define-module (chibi test)
|
||||
(export
|
||||
test test-error test-assert test-values
|
||||
test test-error test-assert test-not test-values
|
||||
test-group current-test-group
|
||||
test-begin test-end test-syntax-error test-info
|
||||
test-vars test-run ;;test-exit
|
||||
|
|
|
@ -80,6 +80,11 @@
|
|||
(test-syntax-error 'test-assert "1 or 2 arguments required"
|
||||
(test a ...)))))
|
||||
|
||||
(define-syntax test-not
|
||||
(syntax-rules ()
|
||||
((_ expr) (test-assert (not expr)))
|
||||
((_ name expr) (test-assert name (not expr)))))
|
||||
|
||||
(define-syntax test-values
|
||||
(syntax-rules ()
|
||||
((_ expect expr)
|
||||
|
|
Loading…
Add table
Reference in a new issue