aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog8
-rw-r--r--test/automated/eieio-test-methodinvoke.el4
-rw-r--r--test/automated/eieio-tests.el6
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 @@
12015-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
12015-01-07 Stefan Monnier <monnier@iro.umontreal.ca> 92015-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)))