diff options
| author | Stefan Monnier | 2015-01-08 00:24:24 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2015-01-08 00:24:24 -0500 |
| commit | 54181569d255322bdae321dc3fddeb465780fbe0 (patch) | |
| tree | c1ac30021555f7cf3d86599b920f3996ebfe4ec2 /test | |
| parent | 1599688e95802c34f35819f5600a48a81248732c (diff) | |
| download | emacs-54181569d255322bdae321dc3fddeb465780fbe0.tar.gz emacs-54181569d255322bdae321dc3fddeb465780fbe0.zip | |
* emacs-lisp/eieio-generic.el: New file.
* lisp/emacs-lisp/eieio-core.el: Move all generic function code to
eieio-generic.el.
(eieio--defmethod): Declare.
* lisp/emacs-lisp/eieio.el: Require eieio-generic. Move all generic
function code to eieio-generic.el.
* lisp/emacs-lisp/eieio-opt.el (eieio-help-generic): Move to
eieio-generic.el.
* lisp/emacs-lisp/eieio-datadebug.el (eieio-debug-methodinvoke): Update call
to eieio--generic-call.
* lisp/emacs-lisp/eieio-base.el (eieio-instance-inheritor): Don't use
<class>-child type.
* test/automated/eieio-test-methodinvoke.el (eieio-test-method-store):
Update reference to eieio--generic-call-key.
* test/automated/eieio-tests.el (eieio-test-23-inheritance-check): Don't use
<foo>-child-p.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 8 | ||||
| -rw-r--r-- | test/automated/eieio-test-methodinvoke.el | 4 | ||||
| -rw-r--r-- | test/automated/eieio-tests.el | 6 |
3 files changed, 13 insertions, 5 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index bb480280970..ca10ddaca68 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2015-01-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * automated/eieio-tests.el (eieio-test-23-inheritance-check): Don't use | ||
| 4 | <foo>-child-p. | ||
| 5 | |||
| 6 | * automated/eieio-test-methodinvoke.el (eieio-test-method-store): | ||
| 7 | Update reference to eieio--generic-call-key. | ||
| 8 | |||
| 1 | 2015-01-07 Stefan Monnier <monnier@iro.umontreal.ca> | 9 | 2015-01-07 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 10 | ||
| 3 | * automated/eieio-tests.el: Use cl-lib. Don't use <class> as a variable. | 11 | * automated/eieio-tests.el: Use cl-lib. Don't use <class> as a variable. |
diff --git a/test/automated/eieio-test-methodinvoke.el b/test/automated/eieio-test-methodinvoke.el index 7790c13327f..99e115a5b92 100644 --- a/test/automated/eieio-test-methodinvoke.el +++ b/test/automated/eieio-test-methodinvoke.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; eieio-testsinvoke.el -- eieio tests for method invocation | 1 | ;;; eieio-testsinvoke.el -- eieio tests for method invocation |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2005, 2008, 2010, 2013-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2005, 2008, 2010, 2013-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 6 | 6 | ||
| @@ -60,7 +60,7 @@ | |||
| 60 | (defun eieio-test-method-store () | 60 | (defun eieio-test-method-store () |
| 61 | "Store current invocation class symbol in the invocation order list." | 61 | "Store current invocation class symbol in the invocation order list." |
| 62 | (let* ((keysym (aref [ :STATIC :BEFORE :PRIMARY :AFTER ] | 62 | (let* ((keysym (aref [ :STATIC :BEFORE :PRIMARY :AFTER ] |
| 63 | (or eieio-generic-call-key 0))) | 63 | (or eieio--generic-call-key 0))) |
| 64 | ;; FIXME: Don't depend on `eieio--scoped-class'! | 64 | ;; FIXME: Don't depend on `eieio--scoped-class'! |
| 65 | (c (list keysym (eieio--class-symbol (eieio--scoped-class))))) | 65 | (c (list keysym (eieio--class-symbol (eieio--scoped-class))))) |
| 66 | (push c eieio-test-method-order-list))) | 66 | (push c eieio-test-method-order-list))) |
diff --git a/test/automated/eieio-tests.el b/test/automated/eieio-tests.el index 13f4a5728ed..ac8aeb56a8a 100644 --- a/test/automated/eieio-tests.el +++ b/test/automated/eieio-tests.el | |||
| @@ -542,10 +542,10 @@ METHOD is the method that was attempting to be called." | |||
| 542 | (should (same-class-p eitest-a 'class-a)) | 542 | (should (same-class-p eitest-a 'class-a)) |
| 543 | (should (class-a-p eitest-a)) | 543 | (should (class-a-p eitest-a)) |
| 544 | (should (not (class-a-p eitest-ab))) | 544 | (should (not (class-a-p eitest-ab))) |
| 545 | (should (class-a-child-p eitest-a)) | 545 | (should (cl-typep eitest-a 'class-a)) |
| 546 | (should (class-a-child-p eitest-ab)) | 546 | (should (cl-typep eitest-ab 'class-a)) |
| 547 | (should (not (class-a-p "foo"))) | 547 | (should (not (class-a-p "foo"))) |
| 548 | (should (not (class-a-child-p "foo")))) | 548 | (should (not (cl-typep "foo" 'class-a)))) |
| 549 | 549 | ||
| 550 | (ert-deftest eieio-test-24-object-predicates () | 550 | (ert-deftest eieio-test-24-object-predicates () |
| 551 | (let ((listooa (list (class-ab) (class-a))) | 551 | (let ((listooa (list (class-ab) (class-a))) |