From: Stefan Monnier Date: Mon, 29 Apr 2024 17:34:23 +0000 (-0400) Subject: oclosure-tests.el: Adjust to new `interpreted-function` type X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cfce010a786acf7ba0c48fdc8b05033542f3f61b;p=emacs.git oclosure-tests.el: Adjust to new `interpreted-function` type * test/lisp/emacs-lisp/oclosure-tests.el (oclosure-test-gen): Adjust to new `interpreted-function` type. (oclosure-test): Tweak accordingly. (cherry picked from commit 7c835291dde79b39323a4a2623a14cc7564164cb) --- diff --git a/test/lisp/emacs-lisp/oclosure-tests.el b/test/lisp/emacs-lisp/oclosure-tests.el index 4760f403158..14c205631e0 100644 --- a/test/lisp/emacs-lisp/oclosure-tests.el +++ b/test/lisp/emacs-lisp/oclosure-tests.el @@ -32,7 +32,7 @@ (cl-defmethod oclosure-test-gen ((_x compiled-function)) "#") -(cl-defmethod oclosure-test-gen ((_x cons)) "#") +(cl-defmethod oclosure-test-gen ((_x interpreted-function)) "#") (cl-defmethod oclosure-test-gen ((_x oclosure)) (format "#" (cl-call-next-method))) @@ -63,7 +63,7 @@ (should (cl-typep ocl1 'oclosure-test)) (should (cl-typep ocl1 'oclosure)) (should (member (oclosure-test-gen ocl1) - '("#>>" + '("#>>" "#>>"))) (should (stringp (documentation #'oclosure-test--fst))) ))