Commit 37cb1299 authored by Michael Albinus's avatar Michael Albinus

* test/lisp/format-spec-tests.el (test-format-unknown): Use `should-error'.

parent b44f0c45
Pipeline #2374 passed with stage
in 54 minutes and 38 seconds
......@@ -31,10 +31,7 @@
"foo bar zot")))
(ert-deftest test-format-unknown ()
(should (eq (condition-case _
(format-spec "foo %b %z zot" '((?b . "bar")))
(error :error))
(should-error (format-spec "foo %b %z zot" '((?b . "bar"))))
(should (equal (format-spec "foo %b %z zot" '((?b . "bar")) t)
"foo bar %z zot"))
(should (equal (format-spec "foo %b %z %% zot" '((?b . "bar")) t)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment