diff options
| author | Noam Postavsky | 2017-06-29 19:42:32 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-06-29 19:42:32 -0400 |
| commit | 169532b0ebc3acb0b1c943d0b3d8b569cd57ca4b (patch) | |
| tree | 60d7ae515b92944d1e90772df3ae5dac05b5c715 /test | |
| parent | 138447c3abd749d1c27d99d7089b1b0903352ade (diff) | |
| parent | c87c87fcc361494815bbd1d92f450b0b80a3ecbb (diff) | |
| download | emacs-169532b0ebc3acb0b1c943d0b3d8b569cd57ca4b.tar.gz emacs-169532b0ebc3acb0b1c943d0b3d8b569cd57ca4b.zip | |
; Merge: Backtrace printing improvements (Bug#6991)
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/emacs-lisp/cl-print-tests.el | 2 | ||||
| -rw-r--r-- | test/lisp/emacs-lisp/ert-tests.el | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/test/lisp/emacs-lisp/cl-print-tests.el b/test/lisp/emacs-lisp/cl-print-tests.el index dfbe18d7844..6448a1b37f7 100644 --- a/test/lisp/emacs-lisp/cl-print-tests.el +++ b/test/lisp/emacs-lisp/cl-print-tests.el | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | (let ((print-circle t)) | 34 | (let ((print-circle t)) |
| 35 | (should (equal (cl-prin1-to-string `((x . ,x) (y . ,x))) | 35 | (should (equal (cl-prin1-to-string `((x . ,x) (y . ,x))) |
| 36 | "((x . #1=#s(cl-print--test :a 1 :b 2)) (y . #1#))"))) | 36 | "((x . #1=#s(cl-print--test :a 1 :b 2)) (y . #1#))"))) |
| 37 | (should (string-match "\\`#f(compiled-function (x) .*\n\n.*)\\'" | 37 | (should (string-match "\\`#f(compiled-function (x) \"[^\"]+\" [^\)]*)\\'" |
| 38 | (cl-prin1-to-string (symbol-function #'caar)))))) | 38 | (cl-prin1-to-string (symbol-function #'caar)))))) |
| 39 | 39 | ||
| 40 | (ert-deftest cl-print-tests-2 () | 40 | (ert-deftest cl-print-tests-2 () |
diff --git a/test/lisp/emacs-lisp/ert-tests.el b/test/lisp/emacs-lisp/ert-tests.el index fc5790c3659..317838b250f 100644 --- a/test/lisp/emacs-lisp/ert-tests.el +++ b/test/lisp/emacs-lisp/ert-tests.el | |||
| @@ -367,12 +367,8 @@ This macro is used to test if macroexpansion in `should' works." | |||
| 367 | (test (make-ert-test :body test-body)) | 367 | (test (make-ert-test :body test-body)) |
| 368 | (result (ert-run-test test))) | 368 | (result (ert-run-test test))) |
| 369 | (should (ert-test-failed-p result)) | 369 | (should (ert-test-failed-p result)) |
| 370 | (with-temp-buffer | 370 | (should (eq (nth 1 (car (ert-test-failed-backtrace result))) |
| 371 | (ert--print-backtrace (ert-test-failed-backtrace result)) | 371 | 'signal)))) |
| 372 | (goto-char (point-min)) | ||
| 373 | (end-of-line) | ||
| 374 | (let ((first-line (buffer-substring-no-properties (point-min) (point)))) | ||
| 375 | (should (equal first-line (format " %S()" test-body))))))) | ||
| 376 | 372 | ||
| 377 | (ert-deftest ert-test-messages () | 373 | (ert-deftest ert-test-messages () |
| 378 | :tags '(:causes-redisplay) | 374 | :tags '(:causes-redisplay) |