mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +02:00
Fix the exception type of the (begin) test.
* test-suite/tests/syntax.test (exception:zero-expression-sequence): New variable. ("begin")["legal (begin)"]: Rename to "valid (begin)". ["illegal (begin)"]: Ditto. Expect `exception:zero-expression-sequence'.
This commit is contained in:
parent
b3da54d181
commit
9133716faa
1 changed files with 5 additions and 3 deletions
|
@ -81,6 +81,8 @@
|
|||
|
||||
(define exception:too-many-args
|
||||
"too many arguments")
|
||||
(define exception:zero-expression-sequence
|
||||
"sequence of zero expressions")
|
||||
|
||||
|
||||
;; (put 'pass-if-syntax-error 'scheme-indent-function 1)
|
||||
|
@ -148,12 +150,12 @@
|
|||
|
||||
(with-test-prefix "begin"
|
||||
|
||||
(pass-if "legal (begin)"
|
||||
(pass-if "valid (begin)"
|
||||
(eval '(begin (begin) #t) (interaction-environment)))
|
||||
|
||||
(if (not (include-deprecated-features))
|
||||
(pass-if-syntax-error "illegal (begin)"
|
||||
exception:generic-syncase-error
|
||||
(pass-if-syntax-error "invalid (begin)"
|
||||
exception:zero-expression-sequence
|
||||
(eval '(begin (if #t (begin)) #t) (interaction-environment)))))
|
||||
|
||||
(define-syntax matches?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue