diff options
| author | Joakim Verona | 2015-01-22 00:05:27 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-01-22 00:05:27 +0100 |
| commit | d6ada5ae0fad7a5c85eb28b102bc460e9fe0aceb (patch) | |
| tree | aa8b504032eb09caa6f5eae6038a38b87ada198b /test | |
| parent | 487d6cdc4dfc6500885dfa57a7c2fac8a1760fec (diff) | |
| parent | 20f66485526b69eb26f2e70bd835a5e1333559d5 (diff) | |
| download | emacs-d6ada5ae0fad7a5c85eb28b102bc460e9fe0aceb.tar.gz emacs-d6ada5ae0fad7a5c85eb28b102bc460e9fe0aceb.zip | |
Merge branch 'master' into xwidget
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 11 | ||||
| -rw-r--r-- | test/automated/cl-generic-tests.el | 5 | ||||
| -rw-r--r-- | test/automated/eieio-test-methodinvoke.el | 2 |
3 files changed, 15 insertions, 3 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index dcce0bf3c39..d63a561953d 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,7 +1,12 @@ | |||
| 1 | 2015-01-21 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * automated/cl-generic-tests.el (setf cl--generic-2): Make sure | ||
| 4 | the setf can be used already in the body of the method. | ||
| 5 | |||
| 1 | 2015-01-20 Jorgen Schaefer <contact@jorgenschaefer.de> | 6 | 2015-01-20 Jorgen Schaefer <contact@jorgenschaefer.de> |
| 2 | 7 | ||
| 3 | * automated/package-test.el (package-test-install-prioritized): | 8 | * automated/package-test.el (package-test-install-prioritized): |
| 4 | Removed test due to unreproducable failures. | 9 | Remove test due to unreproducable failures. |
| 5 | 10 | ||
| 6 | 2015-01-20 Michal Nazarewicz <mina86@mina86.com> | 11 | 2015-01-20 Michal Nazarewicz <mina86@mina86.com> |
| 7 | 12 | ||
| @@ -15,8 +20,8 @@ | |||
| 15 | A new helper function for testing `tildify-double-space-undos' | 20 | A new helper function for testing `tildify-double-space-undos' |
| 16 | behaviour in the `tildify-space' function. | 21 | behaviour in the `tildify-space' function. |
| 17 | (tildify-space-undo-test-html, tildify-space-undo-test-html-nbsp) | 22 | (tildify-space-undo-test-html, tildify-space-undo-test-html-nbsp) |
| 18 | (tildify-space-undo-test-xml, tildify-space-undo-test-tex): New | 23 | (tildify-space-undo-test-xml, tildify-space-undo-test-tex): |
| 19 | tests for `tildify-doule-space-undos' behaviour. | 24 | New tests for `tildify-doule-space-undos' behaviour. |
| 20 | 25 | ||
| 21 | * automated/tildify-tests.el (tildify-space-test--test): | 26 | * automated/tildify-tests.el (tildify-space-test--test): |
| 22 | A new helper function for testing `tildify-space' function. | 27 | A new helper function for testing `tildify-space' function. |
diff --git a/test/automated/cl-generic-tests.el b/test/automated/cl-generic-tests.el index 1c01d9b164b..bc9a1ece423 100644 --- a/test/automated/cl-generic-tests.el +++ b/test/automated/cl-generic-tests.el | |||
| @@ -73,6 +73,11 @@ | |||
| 73 | (should (equal (cl--generic-1 (make-cl-generic-struct-child11) nil) | 73 | (should (equal (cl--generic-1 (make-cl-generic-struct-child11) nil) |
| 74 | '("child11" "around""child1" "parent" a)))) | 74 | '("child11" "around""child1" "parent" a)))) |
| 75 | 75 | ||
| 76 | ;; I don't know how to put this inside an `ert-test'. This tests that `setf' | ||
| 77 | ;; can be used directly inside the body of the setf method. | ||
| 78 | (cl-defmethod (setf cl--generic-2) (v (y integer) z) | ||
| 79 | (setf (cl--generic-2 (nth y z) z) v)) | ||
| 80 | |||
| 76 | (ert-deftest cl-generic-test-03-setf () | 81 | (ert-deftest cl-generic-test-03-setf () |
| 77 | (cl-defmethod (setf cl--generic-1) (v (y t) z) (list v y z)) | 82 | (cl-defmethod (setf cl--generic-1) (v (y t) z) (list v y z)) |
| 78 | (cl-defmethod (setf cl--generic-1) (v (_y (eql 4)) z) (list v "four" z)) | 83 | (cl-defmethod (setf cl--generic-1) (v (_y (eql 4)) z) (list v "four" z)) |
diff --git a/test/automated/eieio-test-methodinvoke.el b/test/automated/eieio-test-methodinvoke.el index 3918fb904fe..da5f59a4654 100644 --- a/test/automated/eieio-test-methodinvoke.el +++ b/test/automated/eieio-test-methodinvoke.el | |||
| @@ -292,6 +292,7 @@ | |||
| 292 | 292 | ||
| 293 | (defmethod initialize-instance :after ((this eitest-Ja) &rest slots) | 293 | (defmethod initialize-instance :after ((this eitest-Ja) &rest slots) |
| 294 | ;(message "+Ja") | 294 | ;(message "+Ja") |
| 295 | ;; FIXME: Using next-method-p in an after-method is invalid! | ||
| 295 | (when (next-method-p) | 296 | (when (next-method-p) |
| 296 | (call-next-method)) | 297 | (call-next-method)) |
| 297 | ;(message "-Ja") | 298 | ;(message "-Ja") |
| @@ -302,6 +303,7 @@ | |||
| 302 | 303 | ||
| 303 | (defmethod initialize-instance :after ((this eitest-Jb) &rest slots) | 304 | (defmethod initialize-instance :after ((this eitest-Jb) &rest slots) |
| 304 | ;(message "+Jb") | 305 | ;(message "+Jb") |
| 306 | ;; FIXME: Using next-method-p in an after-method is invalid! | ||
| 305 | (when (next-method-p) | 307 | (when (next-method-p) |
| 306 | (call-next-method)) | 308 | (call-next-method)) |
| 307 | ;(message "-Jb") | 309 | ;(message "-Jb") |