bugs/top.mes: document toplevel begin bug; probable reason for record/syntax-case failure.
This commit is contained in:
parent
262c507303
commit
7662a0918d
12
bugs/top.mes
Normal file
12
bugs/top.mes
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
(begin (define *test-begin-a* '*test-begin-a*))
|
||||||
|
|
||||||
|
(display "defined? *test-begin-a*: ")
|
||||||
|
(display (defined? '*test-begin-a*))
|
||||||
|
(newline)
|
||||||
|
(display *test-begin-a*)
|
||||||
|
(newline)
|
||||||
|
|
||||||
|
(let () (define *test-let-a* '*test-let-a*) #f)
|
||||||
|
(display "defined? *test-let-a*: ")
|
||||||
|
(display (defined? '*test-let-a*))
|
||||||
|
(newline)
|
6
test.mes
6
test.mes
|
@ -236,6 +236,12 @@
|
||||||
|
|
||||||
(pass-if "cond-expand" (sequal? (cond-expand (foobar #f) (mes (display ": pass: *YAY*") 'mes) (guile (display ": pass: *GUILE*") 'mes)) 'mes))
|
(pass-if "cond-expand" (sequal? (cond-expand (foobar #f) (mes (display ": pass: *YAY*") 'mes) (guile (display ": pass: *GUILE*") 'mes)) 'mes))
|
||||||
|
|
||||||
|
(begin (define *top-begin-a* '*top-begin-a*))
|
||||||
|
(pass-if "top begin " (seq? (and (defined? '*top-begin-a*) *top-begin-a*) '*top-begin-a*))
|
||||||
|
|
||||||
|
(let () (define *top-let-a* '*top-let-a*) #f)
|
||||||
|
(pass-if "top let " (seq? (and (defined? '*top-let-a*) *top-let-a*) #f))
|
||||||
|
|
||||||
(newline)
|
(newline)
|
||||||
(display "passed: ") (display (car (result))) (newline)
|
(display "passed: ") (display (car (result))) (newline)
|
||||||
(display "failed: ") (display (cadr (result))) (newline)
|
(display "failed: ") (display (cadr (result))) (newline)
|
||||||
|
|
Loading…
Reference in a new issue