From: John Cowan <cowan@ccil.org>
To: Taylan Kammer <taylan.kammer@gmail.com>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: srfi-64 apathetic test-error
Date: Thu, 24 Oct 2019 12:21:46 -0400 [thread overview]
Message-ID: <CAD2gp_Qjm5=XCQ5-52htfMzEYEU3jdeOFWLyzPh8UTvkhypPDg@mail.gmail.com> (raw)
In-Reply-To: <5d7fb138-a870-826f-2a68-a539c90da813@gmail.com>
Note however that such error tests are inherently non-portable (except in
R6RS systems only) and should be avoided when testing code intended to be
portable.
On Thu, Oct 24, 2019 at 12:20 PM Taylan Kammer <taylan.kammer@gmail.com>
wrote:
> On 23.10.2019 06:37, Christopher Howard wrote:
> > Hi, I was just wondering: `test-error' from (srfi srfi-64) gives a pass
> > if it catches an exception, but it doesn't seem to care whether or not
> > the exception caught matches what you told it to expect. Is this a bug?
>
> The (test-error ...) form takes an optional "error-type" operand. It
> can be an arbitrary predicate (one-argument procedure that returns a
> Boolean value) which tests if the error is the expected kind.
>
> See here for a complete documentation of the SRFI-64 API:
>
> https://srfi.schemers.org/srfi-64/srfi-64.html
>
> - Taylan
>
>
next prev parent reply other threads:[~2019-10-24 16:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-23 4:37 srfi-64 apathetic test-error Christopher Howard
2019-10-24 16:18 ` Taylan Kammer
2019-10-24 16:21 ` John Cowan [this message]
2019-10-24 16:50 ` Taylan Kammer
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/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAD2gp_Qjm5=XCQ5-52htfMzEYEU3jdeOFWLyzPh8UTvkhypPDg@mail.gmail.com' \
--to=cowan@ccil.org \
--cc=guile-user@gnu.org \
--cc=taylan.kammer@gmail.com \
/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).