test: Add toplevel begin define test.
* tests/base.test (top begin define): New test.
This commit is contained in:
parent
ffd2d3df4f
commit
c121fe3d72
|
@ -39,6 +39,9 @@ exit $?
|
||||||
(begin (define *top-begin-a* '*top-begin-a*))
|
(begin (define *top-begin-a* '*top-begin-a*))
|
||||||
(pass-if "top begin " (seq? *top-begin-a* '*top-begin-a*))
|
(pass-if "top begin " (seq? *top-begin-a* '*top-begin-a*))
|
||||||
|
|
||||||
|
(begin (begin (define *top-begin-begin-a* '*top-begin-begin-a*)))
|
||||||
|
(pass-if "top begin begin " (seq? *top-begin-begin-a* '*top-begin-begin-a*))
|
||||||
|
|
||||||
(pass-if "if" (seq? (if #t 'true) 'true))
|
(pass-if "if" (seq? (if #t 'true) 'true))
|
||||||
(pass-if "if 2" (seq? (if #f #f) *unspecified*))
|
(pass-if "if 2" (seq? (if #f #f) *unspecified*))
|
||||||
(pass-if "if 3" (seq? (if (seq? 0 '0) 'true 'false) 'true))
|
(pass-if "if 3" (seq? (if (seq? 0 '0) 'true 'false) 'true))
|
||||||
|
|
Loading…
Reference in a new issue