diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/ffap-tests.el | 2 | ||||
| -rw-r--r-- | test/src/fns-tests.el | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/test/lisp/ffap-tests.el b/test/lisp/ffap-tests.el index eaf39680e48..30c8f794577 100644 --- a/test/lisp/ffap-tests.el +++ b/test/lisp/ffap-tests.el | |||
| @@ -74,7 +74,7 @@ left alone when opening a URL in an external browser." | |||
| 74 | (urls nil) | 74 | (urls nil) |
| 75 | (ffap-url-fetcher (lambda (url) (push url urls) nil))) | 75 | (ffap-url-fetcher (lambda (url) (push url urls) nil))) |
| 76 | (should-not (ffap-other-window "https://www.gnu.org")) | 76 | (should-not (ffap-other-window "https://www.gnu.org")) |
| 77 | (should (equal (current-window-configuration) old)) | 77 | (should (compare-window-configurations (current-window-configuration) old)) |
| 78 | (should (equal urls '("https://www.gnu.org"))))) | 78 | (should (equal urls '("https://www.gnu.org"))))) |
| 79 | 79 | ||
| 80 | (provide 'ffap-tests) | 80 | (provide 'ffap-tests) |
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el index 60be2c6c2d7..c6ceae4a00e 100644 --- a/test/src/fns-tests.el +++ b/test/src/fns-tests.el | |||
| @@ -858,6 +858,22 @@ | |||
| 858 | (puthash k k h))) | 858 | (puthash k k h))) |
| 859 | (should (= 100 (hash-table-count h))))) | 859 | (should (= 100 (hash-table-count h))))) |
| 860 | 860 | ||
| 861 | (ert-deftest test-sxhash-equal () | ||
| 862 | (should (= (sxhash-equal (* most-positive-fixnum most-negative-fixnum)) | ||
| 863 | (sxhash-equal (* most-positive-fixnum most-negative-fixnum)))) | ||
| 864 | (should (= (sxhash-equal (make-string 1000 ?a)) | ||
| 865 | (sxhash-equal (make-string 1000 ?a)))) | ||
| 866 | (should (= (sxhash-equal (point-marker)) | ||
| 867 | (sxhash-equal (point-marker)))) | ||
| 868 | (should (= (sxhash-equal (make-vector 1000 (make-string 10 ?a))) | ||
| 869 | (sxhash-equal (make-vector 1000 (make-string 10 ?a))))) | ||
| 870 | (should (= (sxhash-equal (make-bool-vector 1000 t)) | ||
| 871 | (sxhash-equal (make-bool-vector 1000 t)))) | ||
| 872 | (should (= (sxhash-equal (make-char-table nil (make-string 10 ?a))) | ||
| 873 | (sxhash-equal (make-char-table nil (make-string 10 ?a))))) | ||
| 874 | (should (= (sxhash-equal (record 'a (make-string 10 ?a))) | ||
| 875 | (sxhash-equal (record 'a (make-string 10 ?a)))))) | ||
| 876 | |||
| 861 | (ert-deftest test-secure-hash () | 877 | (ert-deftest test-secure-hash () |
| 862 | (should (equal (secure-hash 'md5 "foobar") | 878 | (should (equal (secure-hash 'md5 "foobar") |
| 863 | "3858f62230ac3c915f300c664312c63f")) | 879 | "3858f62230ac3c915f300c664312c63f")) |