mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-22 07:09:18 +02:00
Adding nested guard test from Per Bothner.
This commit is contained in:
parent
8cb80bb7ed
commit
6f5f0c6627
1 changed files with 11 additions and 0 deletions
|
@ -1661,6 +1661,17 @@
|
|||
((assq 'b condition)))
|
||||
(raise (list (cons 'b 23)))))
|
||||
|
||||
(test 'caught-d
|
||||
(guard (condition
|
||||
((assq 'c condition) 'caught-c)
|
||||
((assq 'd condition) 'caught-d))
|
||||
(list
|
||||
(sqrt 8)
|
||||
(guard (condition
|
||||
((assq 'a condition) => cdr)
|
||||
((assq 'b condition)))
|
||||
(raise (list (cons 'd 24)))))))
|
||||
|
||||
(test-end)
|
||||
|
||||
(test-begin "6.12 Environments and evaluation")
|
||||
|
|
Loading…
Add table
Reference in a new issue