From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John Cowan Newsgroups: gmane.lisp.guile.user Subject: Re: srfi-64 apathetic test-error Date: Thu, 24 Oct 2019 12:21:46 -0400 Message-ID: References: <1571805467.17453.2.camel@librehacker.com> <5d7fb138-a870-826f-2a68-a539c90da813@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="101692"; mail-complaints-to="usenet@blaine.gmane.org" Cc: guile-user To: Taylan Kammer Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Oct 24 18:48:40 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNgHv-000QJr-Nz for guile-user@m.gmane.org; Thu, 24 Oct 2019 18:48:39 +0200 Original-Received: from localhost ([::1]:47910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNgHt-0001M4-Un for guile-user@m.gmane.org; Thu, 24 Oct 2019 12:48:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56559) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNfs8-00040P-Qu for guile-user@gnu.org; Thu, 24 Oct 2019 12:22:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNfs7-0007II-I6 for guile-user@gnu.org; Thu, 24 Oct 2019 12:22:00 -0400 Original-Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:40070) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNfs6-0007I3-Qt for guile-user@gnu.org; Thu, 24 Oct 2019 12:21:59 -0400 Original-Received: by mail-qt1-x82c.google.com with SMTP id o49so30863407qta.7 for ; Thu, 24 Oct 2019 09:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ALvZdBqv+cunhea2zad0MbCMLBjPf6ovFvawzet2NBE=; b=uUcT0vIbWeAtwMOITOlMnxvAXr68GpfeMatnPKA3QikyK+Dc9SfOD1FkqvbjfjZXgO xwKM7TdpGDElxRg4n+YK3CEb8RmHMTrwuebc0Fst9T9SBLjtqn/3v9GpB4kHDh3ETIT8 HhgbgkWIXCXLhKI6QJENh0aulQaKbP/9mwXs7/3ZeZ0YAB0eCYN8I497xOtaUJ7YDT50 r80NOePhu21SYfEu/SGzOiG9BvRHFZkpCFhEN05d3TvoeudYnXt3Ogo8Gr/0Ngs4cpPj yRUMaze65bthDphpHruDYH9tIFKMfYOZmyy7+i0c9G9x8EOgk26QjsL7fvoIKWcXDqCG k3sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ALvZdBqv+cunhea2zad0MbCMLBjPf6ovFvawzet2NBE=; b=iTzkJvcBevrH/6Mro90005rz+MYAuN0MlgQQ7aeyoiUKu/4GhnR/JQ9inGYMsNVkhF EKFAihYrI7QPjLxZFzGd5RhlLTqv6B5DCpjOp7+JO4eQ2dSDJBdGFDMBmRcg2MBk/bM9 v26DO9YdinrxQ3EdFGq3U1yYoPuKr2Ugmoo+EVUWzI38sPZtcWLbwY3BYTRi1UFKPetU JbgqgwjrCUqSx6qsRXSmd88sM8RpiqKLkcnwCJozKAad4F2uO1BoTTefpEkdwg8K+0/1 4wPFVVp1/bHwD2KxkD3b+2aMl1YCTT3hB5bYcdy32hi/k188Z9mReh4w00avUpawY2Y3 rZsw== X-Gm-Message-State: APjAAAXF6AGCsAx0BxYQTnwEmlh5+O/LD4NPcJPukoeTvJEvIFbybD5v GekxhOrzwE3rQEGwwGXUEK6szl9ZxBM4LydDA1wDhQ== X-Google-Smtp-Source: APXvYqwM51SfXRF1/NnCsQ2lm3wofag23C9cEc93YF+axO40B+ZmTKJ5hWxPpnVFRm6TVhokXZZyZii7UQoWofMxRjI= X-Received: by 2002:aed:3c24:: with SMTP id t33mr2779158qte.186.1571934117114; Thu, 24 Oct 2019 09:21:57 -0700 (PDT) In-Reply-To: <5d7fb138-a870-826f-2a68-a539c90da813@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::82c X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15822 Archived-At: 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 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 > >