Commit 665ee28b authored by pfdietz's avatar pfdietz

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

parent 74980415
......@@ -26,6 +26,22 @@
(typep* #'(setf class-name) 'standard-generic-function)
t)
(deftest setf-class-name.2
(let ((sym (gensym))
(newsym (gensym)))
(eval `(defclass ,sym () (a b c)))
(let ((class (find-class sym)))
(values
(eqlt (class-name class) sym)
(equalt
(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)
t)
......
Markdown is supported
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