X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fmop.pure.lisp;fp=tests%2Fmop.pure.lisp;h=b35f47da2e967f79e2cff31bc54aba0c97f5e61f;hb=1f9c4bb952a1f8b19ee9da0f54e95b2b3aa9111a;hp=cb60b2545f17578ae8128f5cea1c6c4f3788cd45;hpb=04a651e749befd65ffd8bf49f689b6e7d55607e2;p=sbcl.git diff --git a/tests/mop.pure.lisp b/tests/mop.pure.lisp index cb60b25..b35f47d 100644 --- a/tests/mop.pure.lisp +++ b/tests/mop.pure.lisp @@ -85,3 +85,11 @@ (sb-mop:class-direct-superclasses (make-instance 'standard-class)))) (assert (equal (list (find-class 'sb-mop:funcallable-standard-object)) (sb-mop:class-direct-superclasses (make-instance 'sb-mop:funcallable-standard-class)))) + +(with-test (:name :bug-936513) + ;; This used to fail as ENSURE-GENERIC-FUNCTION wanted a list specifying + ;; the method combination, and didn't accept the actual object + (let ((mc (sb-pcl:find-method-combination #'make-instance 'standard nil))) + (ensure-generic-function 'make-instance :method-combination mc)) + ;; Let's make sure the list works too... + (ensure-generic-function 'make-instance :method-combination '(standard)))