diff options
| author | Stephen Leake | 2019-04-14 09:24:42 -0700 |
|---|---|---|
| committer | Stephen Leake | 2019-04-14 09:24:42 -0700 |
| commit | 5ee5895f9b7b829783bc0f217095748076cc77e9 (patch) | |
| tree | 82eb5163502b447425eba24d2d368e878813ab77 /test | |
| parent | ca449fb1c1f86589cbf4da49cda1750ffdb2cad4 (diff) | |
| parent | 890440a44cd5f4f09742f521c7783785d114fffc (diff) | |
| download | emacs-5ee5895f9b7b829783bc0f217095748076cc77e9.tar.gz emacs-5ee5895f9b7b829783bc0f217095748076cc77e9.zip | |
Merge commit '890440a44cd5f4f09742f521c7783785d114fffc'
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/filenotify-tests.el | 3 | ||||
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 2 | ||||
| -rw-r--r-- | test/lisp/progmodes/python-tests.el | 2 | ||||
| -rw-r--r-- | test/lisp/subr-tests.el | 18 | ||||
| -rw-r--r-- | test/src/fns-tests.el | 18 | ||||
| -rw-r--r-- | test/src/json-tests.el | 8 |
6 files changed, 29 insertions, 22 deletions
diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el index 50036209b0f..842d66d7780 100644 --- a/test/lisp/filenotify-tests.el +++ b/test/lisp/filenotify-tests.el | |||
| @@ -266,9 +266,8 @@ This returns only for the local case and gfilenotify; otherwise it is nil. | |||
| 266 | (declare (indent 1)) | 266 | (declare (indent 1)) |
| 267 | `(ert-deftest ,(intern (concat (symbol-name test) "-remote")) () | 267 | `(ert-deftest ,(intern (concat (symbol-name test) "-remote")) () |
| 268 | ,docstring | 268 | ,docstring |
| 269 | :tags '(:expensive-test) | ||
| 270 | :expected-result (or ,expected :passed) | 269 | :expected-result (or ,expected :passed) |
| 271 | (skip-unless (not ,skip)) | 270 | :tags ,(if skip ''(:expensive-test :unstable) ''(:expensive-test)) |
| 272 | (let* ((temporary-file-directory | 271 | (let* ((temporary-file-directory |
| 273 | file-notify-test-remote-temporary-file-directory) | 272 | file-notify-test-remote-temporary-file-directory) |
| 274 | (ert-test (ert-get-test ',test)) | 273 | (ert-test (ert-get-test ',test)) |
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 5a9541db8fb..cc3200be948 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -4579,7 +4579,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4579 | ;; skip the test then. | 4579 | ;; skip the test then. |
| 4580 | (condition-case nil | 4580 | (condition-case nil |
| 4581 | (vc-create-repo (car vc-handled-backends)) | 4581 | (vc-create-repo (car vc-handled-backends)) |
| 4582 | (error (skip-unless nil))) | 4582 | (error (ert-skip "`vc-create-repo' not supported"))) |
| 4583 | ;; The structure of VC-FILESET is not documented. Let's | 4583 | ;; The structure of VC-FILESET is not documented. Let's |
| 4584 | ;; hope it won't change. | 4584 | ;; hope it won't change. |
| 4585 | (condition-case nil | 4585 | (condition-case nil |
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el index 999cf8dc7a3..b940f45bb90 100644 --- a/test/lisp/progmodes/python-tests.el +++ b/test/lisp/progmodes/python-tests.el | |||
| @@ -5350,7 +5350,7 @@ buffer with overlapping strings." | |||
| 5350 | ;; The description of the problem it's trying to catch is not clear enough | 5350 | ;; The description of the problem it's trying to catch is not clear enough |
| 5351 | ;; to be able to see if the underlying problem is really fixed, sadly. | 5351 | ;; to be able to see if the underlying problem is really fixed, sadly. |
| 5352 | ;; E.g. I don't know what is meant by "overlap", really. | 5352 | ;; E.g. I don't know what is meant by "overlap", really. |
| 5353 | (skip-unless nil) | 5353 | :tags '(:unstable) |
| 5354 | (python-tests-with-temp-buffer "''' '\n''' ' '\n" | 5354 | (python-tests-with-temp-buffer "''' '\n''' ' '\n" |
| 5355 | (syntax-propertize (point-max)) | 5355 | (syntax-propertize (point-max)) |
| 5356 | ;; Create a situation where strings nominally overlap. This | 5356 | ;; Create a situation where strings nominally overlap. This |
diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el index 7465aac5ea5..c458eef2f93 100644 --- a/test/lisp/subr-tests.el +++ b/test/lisp/subr-tests.el | |||
| @@ -318,24 +318,6 @@ cf. Bug#25477." | |||
| 318 | (should (eq (string-to-char (symbol-name (gensym))) ?g)) | 318 | (should (eq (string-to-char (symbol-name (gensym))) ?g)) |
| 319 | (should (eq (string-to-char (symbol-name (gensym "X"))) ?X))) | 319 | (should (eq (string-to-char (symbol-name (gensym "X"))) ?X))) |
| 320 | 320 | ||
| 321 | (ert-deftest subr-tests--proper-list-p () | ||
| 322 | "Test `proper-list-p' behavior." | ||
| 323 | (dotimes (length 4) | ||
| 324 | ;; Proper and dotted lists. | ||
| 325 | (let ((list (make-list length 0))) | ||
| 326 | (should (= (proper-list-p list) length)) | ||
| 327 | (should (not (proper-list-p (nconc list 0))))) | ||
| 328 | ;; Circular lists. | ||
| 329 | (dotimes (n (1+ length)) | ||
| 330 | (let ((circle (make-list (1+ length) 0))) | ||
| 331 | (should (not (proper-list-p (nconc circle (nthcdr n circle)))))))) | ||
| 332 | ;; Atoms. | ||
| 333 | (should (not (proper-list-p 0))) | ||
| 334 | (should (not (proper-list-p ""))) | ||
| 335 | (should (not (proper-list-p []))) | ||
| 336 | (should (not (proper-list-p (make-bool-vector 0 nil)))) | ||
| 337 | (should (not (proper-list-p (make-symbol "a"))))) | ||
| 338 | |||
| 339 | (ert-deftest subr-tests--assq-delete-all () | 321 | (ert-deftest subr-tests--assq-delete-all () |
| 340 | "Test `assq-delete-all' behavior." | 322 | "Test `assq-delete-all' behavior." |
| 341 | (cl-flet ((new-list-fn | 323 | (cl-flet ((new-list-fn |
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el index d6cc99e8e33..6ebab4287f7 100644 --- a/test/src/fns-tests.el +++ b/test/src/fns-tests.el | |||
| @@ -648,4 +648,22 @@ | |||
| 648 | (should (equal (list (eq a b) n len) | 648 | (should (equal (list (eq a b) n len) |
| 649 | (list t n len)))))))) | 649 | (list t n len)))))))) |
| 650 | 650 | ||
| 651 | (ert-deftest test-proper-list-p () | ||
| 652 | "Test `proper-list-p' behavior." | ||
| 653 | (dotimes (length 4) | ||
| 654 | ;; Proper and dotted lists. | ||
| 655 | (let ((list (make-list length 0))) | ||
| 656 | (should (= (proper-list-p list) length)) | ||
| 657 | (should (not (proper-list-p (nconc list 0))))) | ||
| 658 | ;; Circular lists. | ||
| 659 | (dotimes (n (1+ length)) | ||
| 660 | (let ((circle (make-list (1+ length) 0))) | ||
| 661 | (should (not (proper-list-p (nconc circle (nthcdr n circle)))))))) | ||
| 662 | ;; Atoms. | ||
| 663 | (should (not (proper-list-p 0))) | ||
| 664 | (should (not (proper-list-p ""))) | ||
| 665 | (should (not (proper-list-p []))) | ||
| 666 | (should (not (proper-list-p (make-bool-vector 0 nil)))) | ||
| 667 | (should (not (proper-list-p (make-symbol "a"))))) | ||
| 668 | |||
| 651 | (provide 'fns-tests) | 669 | (provide 'fns-tests) |
diff --git a/test/src/json-tests.el b/test/src/json-tests.el index 04f91f4abbc..542eec11bf3 100644 --- a/test/src/json-tests.el +++ b/test/src/json-tests.el | |||
| @@ -117,6 +117,14 @@ | |||
| 117 | (should (equal (json-parse-string input :object-type 'plist) | 117 | (should (equal (json-parse-string input :object-type 'plist) |
| 118 | '(:abc [9 :false] :def :null))))) | 118 | '(:abc [9 :false] :def :null))))) |
| 119 | 119 | ||
| 120 | (ert-deftest json-parse-string/array () | ||
| 121 | (skip-unless (fboundp 'json-parse-string)) | ||
| 122 | (let ((input "[\"a\", 1, [\"b\", 2]]")) | ||
| 123 | (should (equal (json-parse-string input) | ||
| 124 | ["a" 1 ["b" 2]])) | ||
| 125 | (should (equal (json-parse-string input :array-type 'list) | ||
| 126 | '("a" 1 ("b" 2)))))) | ||
| 127 | |||
| 120 | (ert-deftest json-parse-string/string () | 128 | (ert-deftest json-parse-string/string () |
| 121 | (skip-unless (fboundp 'json-parse-string)) | 129 | (skip-unless (fboundp 'json-parse-string)) |
| 122 | (should-error (json-parse-string "[\"formfeed\f\"]") :type 'json-parse-error) | 130 | (should-error (json-parse-string "[\"formfeed\f\"]") :type 'json-parse-error) |