X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fmop.pure.lisp;h=b35f47da2e967f79e2cff31bc54aba0c97f5e61f;hb=b111015a7111501231c7b61990c61c046392796b;hp=cb60b2545f17578ae8128f5cea1c6c4f3788cd45;hpb=554303a5217026139af0c1b18632155d70c09eb0;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)))