mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
* tests/syntax.test: Added test cases for 'lambda' syntax.
This commit is contained in:
parent
27a226665e
commit
ea6c2147b7
2 changed files with 25 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2001-10-14 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
||||
|
||||
* tests/syntax.test: Added test cases for 'lambda' syntax.
|
||||
|
||||
2001-10-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
||||
|
||||
* tests/syntax.test: Added test cases for 'case' syntax.
|
||||
|
|
|
@ -55,7 +55,27 @@
|
|||
|
||||
(with-test-prefix "bad formals"
|
||||
|
||||
(pass-if-exception "(lambda (x 1) 2)"
|
||||
(pass-if-exception "(lambda)"
|
||||
exception:bad-formals
|
||||
(lambda))
|
||||
|
||||
(pass-if-exception "(lambda . \"foo\")"
|
||||
exception:bad-formals
|
||||
(lambda . "foo"))
|
||||
|
||||
(pass-if-exception "(lambda ())"
|
||||
exception:bad-formals
|
||||
(lambda ()))
|
||||
|
||||
(pass-if-exception "(lambda \"foo\")"
|
||||
exception:bad-formals
|
||||
(lambda "foo"))
|
||||
|
||||
(pass-if-exception "(lambda \"foo\" #f)"
|
||||
exception:bad-formals
|
||||
(lambda "foo" #f))
|
||||
|
||||
(pass-if-exception "(lambda (x 1) 2)"
|
||||
exception:bad-formals
|
||||
(lambda (x 1) 2))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue