* test/lisp/format-spec-tests.el (test-format-unknown): Use `should-error'.
This commit is contained in:
parent
b44f0c4579
commit
37cb129979
1 changed files with 1 additions and 4 deletions
|
@ -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))
|
||||
: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)
|
||||
|
|
Loading…
Add table
Reference in a new issue