]> git.eshelyaron.com Git - emacs.git/commitdiff
Quieten eieio-test compilation
authorGlenn Morris <rgm@gnu.org>
Wed, 21 Mar 2018 18:13:53 +0000 (14:13 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 21 Mar 2018 18:13:53 +0000 (14:13 -0400)
* test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el:
* test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el:
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el:
Remove obsolete name args where not being explicitly tested.

test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el
test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
test/lisp/emacs-lisp/eieio-tests/eieio-tests.el

index c6da9e15fa3fd74378432b6251a67e29e9efaeeb..52014aea01e7efed4a3d0cf2ef97b6169dc45196 100644 (file)
   )
 
 (ert-deftest eieio-test-method-order-list-9 ()
-  (should (eitest-Jd "test")))
+  (should (eitest-Jd)))
 
 ;;; call-next-method with replacement arguments across a simple class hierarchy.
 ;;
 
 (ert-deftest eieio-test-method-order-list-10 ()
   (let ((eieio-test-call-next-method-arguments nil))
-    (CNM-M (CNM-2 "") '(INIT))
+    (CNM-M (CNM-2) '(INIT))
     (should (equal (eieio-test-arguments-for 'CNM-0)
                   '(CNM-1-1 CNM-2 INIT)))
     (should (equal (eieio-test-arguments-for 'CNM-1-1)
index a3ab38348993d1f84cb60ce8c912df8def177530..b485972078ddf78e072222d2b1a95371a0fc3187 100644 (file)
@@ -90,7 +90,7 @@ This is usually a symbol that starts with `:'."
 
 (ert-deftest eieio-test-persist-simple-1 ()
   (let ((persist-simple-1
-        (persist-simple "simple 1" :slot1 'goose :slot2 "testing"
+        (persist-simple :slot1 'goose :slot2 "testing"
                         :file (concat default-directory "test-ps1.pt"))))
     (should persist-simple-1)
 
@@ -124,7 +124,7 @@ Assume SLOTVALUE is a symbol of some sort."
 
 (ert-deftest eieio-test-persist-printer ()
   (let ((persist-:printer-1
-        (persist-:printer "persist" :slot1 'goose :slot2 "testing"
+        (persist-:printer :slot1 'goose :slot2 "testing"
                           :file (concat default-directory "test-ps2.pt"))))
     (should persist-:printer-1)
     (persist-test-save-and-compare persist-:printer-1)
@@ -161,8 +161,7 @@ persistent class.")
 (ert-deftest eieio-test-non-persistent-as-slot ()
   (let ((persist-wos
         (persistent-with-objs-slot
-         "persist wos 1"
-         :pnp (persist-not-persistent "pnp 1" :slot1 3)
+         :pnp (persist-not-persistent :slot1 3)
          :file (concat default-directory "test-ps3.pt"))))
 
     (persist-test-save-and-compare persist-wos)
@@ -188,8 +187,7 @@ persistent class.")
 (ert-deftest eieio-test-non-persistent-as-slot-child ()
   (let ((persist-woss
         (persistent-with-objs-slot-subs
-         "persist woss 1"
-         :pnp (persist-not-persistent-subclass "pnps 1" :slot1 3)
+         :pnp (persist-not-persistent-subclass :slot1 3)
          :file (concat default-directory "test-ps4.pt"))))
 
     (persist-test-save-and-compare persist-woss)
@@ -209,7 +207,7 @@ persistent class.")
 
 (ert-deftest eieio-test-multiple-class-slot ()
   (let ((persist
-         (persistent-multiclass-slot "random string"
+         (persistent-multiclass-slot
           :slot1 (persistent-random-class)
           :slot2 (persist-not-persistent)
           :file (concat default-directory "test-ps5.pt"))))
@@ -229,10 +227,9 @@ persistent class.")
 (ert-deftest eieio-test-slot-with-list-of-objects ()
   (let ((persist-wols
         (persistent-with-objs-list-slot
-         "persist wols 1"
-         :pnp (list (persist-not-persistent "pnp 1" :slot1 3)
-                    (persist-not-persistent "pnp 2" :slot1 4)
-                    (persist-not-persistent "pnp 3" :slot1 5))
+         :pnp (list (persist-not-persistent :slot1 3)
+                    (persist-not-persistent :slot1 4)
+                    (persist-not-persistent :slot1 5))
          :file (concat default-directory "test-ps5.pt"))))
 
     (persist-test-save-and-compare persist-wols)
index 5ba094c007228e0403b3e423162df6a6ce74d431..74c76609b87fdefb591ded65c8e8146f839b10f4 100644 (file)
@@ -689,7 +689,7 @@ Do not override for `prot-2'."
 (defvar eitest-II2 nil)
 (defvar eitest-II3 nil)
 (ert-deftest eieio-test-29-instance-inheritor ()
-  (setq eitest-II1 (II "II Test."))
+  (setq eitest-II1 (II))
   (oset eitest-II1 slot2 'cat)
   (setq eitest-II2 (clone eitest-II1 "eitest-II2 Test."))
   (oset eitest-II2 slot1 'moose)