Commit 665ee28b authored by pfdietz's avatar pfdietz
Browse files

Add a test that (setf class-name) returns the correct values

parent 74980415
......@@ -26,6 +26,22 @@
(typep* #'(setf class-name) 'standard-generic-function)
(deftest setf-class-name.2
(let ((sym (gensym))
(newsym (gensym)))
(eval `(defclass ,sym () (a b c)))
(let ((class (find-class sym)))
(eqlt (class-name class) sym)
(multiple-value-list (setf (class-name (find-class sym)) newsym))
(list newsym))
(eqlt newsym (class-name class)))))
t t t)
;;; Error tests
(deftest class-name.error.1
(signals-error (class-name) program-error)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment