diff options
| author | Tino Calancha | 2016-10-13 17:56:22 +0900 |
|---|---|---|
| committer | Tino Calancha | 2016-10-13 17:56:22 +0900 |
| commit | b0f1d23ec482aa71a0ae0251f6f44f4b8d261259 (patch) | |
| tree | d0d5944f2deca63b81d6847f09210a9f285ab43c | |
| parent | 59c5f36acfcbec4f6119996f7b80383bf86125d4 (diff) | |
| download | emacs-b0f1d23ec482aa71a0ae0251f6f44f4b8d261259.tar.gz emacs-b0f1d23ec482aa71a0ae0251f6f44f4b8d261259.zip | |
Add test for Bug#24627
* /test/lisp/thingatpt-tests.el (thing-at-point-bug24627): New test.
| -rw-r--r-- | test/lisp/thingatpt-tests.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/lisp/thingatpt-tests.el b/test/lisp/thingatpt-tests.el index d3ecbf8c642..2b8e06721a8 100644 --- a/test/lisp/thingatpt-tests.el +++ b/test/lisp/thingatpt-tests.el | |||
| @@ -84,4 +84,19 @@ position to retrieve THING.") | |||
| 84 | (goto-char (nth 1 test)) | 84 | (goto-char (nth 1 test)) |
| 85 | (should (equal (thing-at-point (nth 2 test)) (nth 3 test)))))) | 85 | (should (equal (thing-at-point (nth 2 test)) (nth 3 test)))))) |
| 86 | 86 | ||
| 87 | (ert-deftest thing-at-point-bug24627 () | ||
| 88 | "Test for http://debbugs.gnu.org/24627 ." | ||
| 89 | :expected-result :failed | ||
| 90 | (let ((file | ||
| 91 | (expand-file-name "lisp/thingatpt.el" source-directory)) | ||
| 92 | buf) | ||
| 93 | (when (file-exists-p file) | ||
| 94 | (unwind-protect | ||
| 95 | (progn | ||
| 96 | (setq buf (find-file file)) | ||
| 97 | (goto-char (point-max)) | ||
| 98 | (forward-line -1) | ||
| 99 | (should-not (thing-at-point 'list))) | ||
| 100 | (kill-buffer buf))))) | ||
| 101 | |||
| 87 | ;;; thingatpt.el ends here | 102 | ;;; thingatpt.el ends here |