source: trunk/abcl/t/print-symbol.lisp

Last change on this file was 15253, checked in by Mark Evenson, 5 years ago

Test that inherited symbols are printed without package prefix

File size: 500 bytes
Line 
1(in-package :cl-user)
2
3;; <https://github.com/armedbear/abcl/issues/152>
4(progn
5  (defpackage a (:use))
6  (import 'cl-user::sym 'a)
7  (export 'cl-user::sym 'a)
8  (defpackage b (:use a))
9  (prove:plan 2)
10  (prove:is
11   (let ((*package* (find-package 'b)))
12     (read-from-string "sym"))
13   'sym)
14  (prove:is
15   (let ((*package* (find-package 'b)))
16     (prin1-to-string (find-symbol "SYM" 'b)))
17   "SYM")
18  (unintern 'sym :cl-user)
19  (delete-package :a)
20  (delete-package :b))
21
22
23(prove:finalize)
24
25   
Note: See TracBrowser for help on using the repository browser.