symbol1.scm 731 B

1234567891011121314151617181920212223
  1. ;; This should return #t. If the bug present, code will not
  2. ;; compile. Test case for Savannah bug #39229
  3. (format #t "~s~%" (equal? '|| (string->symbol "")))
  4. ;; Output: #t
  5. ;; Some tests of round-tripping symbols with colon and no namespace,
  6. ;; including testing of eval.
  7. (format #t "short-type.class: ~s~%"
  8. (gnu.bytecode.Type:lookupType "short"))
  9. ;; Output: short-type.class: Type short
  10. (format #t "eval.short-type.class: ~s~%"
  11. (eval '(gnu.bytecode.Type:lookupType "short")))
  12. ;; Output: eval.short-type.class: Type short
  13. (format #t "six:~a~%"
  14. (let ((pr:x 13) (pr:y 7)) (- pr:x pr:y)))
  15. ;; Output: six:6
  16. (format #t "seven:~a~%"
  17. (eval '(let ((pr:x 13) (pr:y 6)) (- pr:x pr:y))))
  18. ;; Output: seven:7