From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: ERT: should-error doesn't catch failed assertions
Date: Mon, 18 Jul 2016 02:42:31 +0200 [thread overview]
Message-ID: <8660s393pk.fsf@student.uu.se> (raw)
In-Reply-To: 874m7n972o.fsf@gmail.com
Sean McAfee <eefacm@gmail.com> writes:
> As described on that page, I see (should-error
> (/ 1 0)) evaluate to (arith-error).
OK, gotcha:
(require 'ert)
(should-error (/ 1 0))
> But assertion failures seem to not count as
> "errors" as far as should-error is concerned.
Why do you want to combine `should-error' with
`assert' and what result is it that you expect?
(should-error (cl-assert (/ 1 0)))
?
--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
- so far: 58 Blogomatic articles -
next prev parent reply other threads:[~2016-07-18 0:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-17 22:24 ERT: should-error doesn't catch failed assertions Sean McAfee
2016-07-17 22:57 ` Emanuel Berg
2016-07-17 23:29 ` Sean McAfee
2016-07-18 0:42 ` Emanuel Berg [this message]
2016-07-18 4:19 ` Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8660s393pk.fsf@student.uu.se \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).