diff options
| author | Michael R. Mauger | 2017-07-24 22:15:04 -0400 |
|---|---|---|
| committer | Michael R. Mauger | 2017-07-24 22:15:04 -0400 |
| commit | df1a71272e5cdd10b511e2ffd702ca50ddd8a773 (patch) | |
| tree | 9b9ac725394ee80891e2bff57b6407d0e491e71a /test/src/fns-tests.el | |
| parent | eb27fc4d49e8c914cd0e6a8a2d02159601542141 (diff) | |
| parent | 32daa3cb54523006c88717cbeac87964cd687a1b (diff) | |
| download | emacs-df1a71272e5cdd10b511e2ffd702ca50ddd8a773.tar.gz emacs-df1a71272e5cdd10b511e2ffd702ca50ddd8a773.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'test/src/fns-tests.el')
| -rw-r--r-- | test/src/fns-tests.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el index 2e463455f0c..e294859226c 100644 --- a/test/src/fns-tests.el +++ b/test/src/fns-tests.el | |||
| @@ -373,6 +373,12 @@ | |||
| 373 | (should-error (assoc 3 d1) :type 'wrong-type-argument) | 373 | (should-error (assoc 3 d1) :type 'wrong-type-argument) |
| 374 | (should-error (assoc 3 d2) :type 'wrong-type-argument))) | 374 | (should-error (assoc 3 d2) :type 'wrong-type-argument))) |
| 375 | 375 | ||
| 376 | (ert-deftest test-assoc-testfn () | ||
| 377 | (let ((alist '(("a" . 1) ("b" . 2)))) | ||
| 378 | (should-not (assoc "a" alist #'ignore)) | ||
| 379 | (should (eq (assoc "b" alist #'string-equal) (cadr alist))) | ||
| 380 | (should-not (assoc "b" alist #'eq)))) | ||
| 381 | |||
| 376 | (ert-deftest test-cycle-rassq () | 382 | (ert-deftest test-cycle-rassq () |
| 377 | (let ((c1 (cyc1 '(0 . 1))) | 383 | (let ((c1 (cyc1 '(0 . 1))) |
| 378 | (c2 (cyc2 '(0 . 1) '(0 . 2))) | 384 | (c2 (cyc2 '(0 . 1) '(0 . 2))) |