mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
* lib.scm (pass-if, expect-fail): Generalized.
* * tests/eval.test: Fixed documentation test.
This commit is contained in:
parent
d8d4d49366
commit
6ad9007abf
3 changed files with 12 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
|||
2000-08-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
||||
|
||||
* lib.scm (pass-if, expect-fail): Generalized to allow a sequence
|
||||
of expressions.
|
||||
|
||||
* tests/eval.test: Fix documentation test.
|
||||
|
||||
2000-06-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
||||
|
||||
* tests/list.test: Added tests for list-ref, list-set! and
|
||||
|
|
|
@ -244,12 +244,12 @@
|
|||
(set! run-test local-run-test))
|
||||
|
||||
;;; A short form for tests that are expected to pass, taken from Greg.
|
||||
(defmacro pass-if (name body)
|
||||
`(run-test ,name #t (lambda () (not (not (begin ,body))))))
|
||||
(defmacro pass-if (name body . rest)
|
||||
`(run-test ,name #t (lambda () (not (not (begin ,body ,@rest))))))
|
||||
|
||||
;;; A short form for tests that are expected to fail, taken from Greg.
|
||||
(defmacro expect-fail (name body)
|
||||
`(run-test ,name #f (lambda () ,body)))
|
||||
(defmacro expect-fail (name body . rest)
|
||||
`(run-test ,name #f (lambda () ,body ,@rest)))
|
||||
|
||||
|
||||
;;;; TEST NAMES
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
;; Is documentation available?
|
||||
|
||||
(expect-fail "documented?"
|
||||
(documented? 'map))
|
||||
(documented? map))
|
||||
|
||||
(with-test-prefix "argument error"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue