From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Taylan Kammer Newsgroups: gmane.lisp.guile.user Subject: Re: srfi-64 apathetic test-error Date: Thu, 24 Oct 2019 18:18:52 +0200 Message-ID: <5d7fb138-a870-826f-2a68-a539c90da813@gmail.com> References: <1571805467.17453.2.camel@librehacker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="227051"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Oct 24 18:20:55 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 1iNfr4-000wxx-SR for guile-user@m.gmane.org; Thu, 24 Oct 2019 18:20:55 +0200 Original-Received: from localhost ([::1]:46584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNfr2-00013C-W8 for guile-user@m.gmane.org; Thu, 24 Oct 2019 12:20:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56218) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNfpA-0007sm-Rq for guile-user@gnu.org; Thu, 24 Oct 2019 12:18:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNfp9-0006pR-OY for guile-user@gnu.org; Thu, 24 Oct 2019 12:18:56 -0400 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:34332) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNfp9-0006p7-IV for guile-user@gnu.org; Thu, 24 Oct 2019 12:18:55 -0400 Original-Received: by mail-wr1-x42b.google.com with SMTP id t16so21639591wrr.1 for ; Thu, 24 Oct 2019 09:18:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=HHzFHeUd3e8/sp7jasf83UqohHZBVy+CAEIsIHcmNpw=; b=RoKVBCU2ej82jeV9fIVcCaYJc9S4gGamK3DcVNDQxsjc0ovyIONntidZCDqoZ+RuJf XZwhSS8oU109C4JYgcec3bDKt3Qcj4lHJZvRi/dp2tJ3Khu3rYj9/6pFp7u1WTnUgDiX mUeoGRXo2cJIFRC56eldlLC8tteBAamiPSluMS/Z8HSQQ2LAUtNUIBFr54Nkl3nx7utU 4cAZFXyiALauPT78r5sgeCgCNjpwNJVrgHhunGdbuLro6qSKII3Vj6KrmkuBBLMBW0gr EVWinHp9w00DOy2I2huLWxixcUNgoaYdFYV1K6mMZtzx5YZ7IRp22RmLZIgQr9dAc4HD srBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HHzFHeUd3e8/sp7jasf83UqohHZBVy+CAEIsIHcmNpw=; b=hgA5JSC83gj6BOlDI79h5UBHCAQexPfHjSx2Gn12uMFquVZN5xqtndQedtyk1Ym3ek 7uU7kYarTXwytSIUpY8+R2i7nOadCpsivRZXoPnoU/IExYpp8TeUOIPbWXhCQUz+TVab v0bIj3Pna2idGlWNH+qrxq8MzxWO2ec8DbQs6E0TR3bk1x5LVGksIgzhHPQedIWr69Dc PXN8Jm3C0jDrsCRKxz7axO1sIWujdbLNR36+fzf0ksnjEOEvb5CF3K6xP1CWom0vn8V3 D5tobC7yI7bLJf9i2qZsYGmvDq9swqnARmle6WPG2Go8IlUsYe0aOQthHfWjLN6/bJ79 vmfA== X-Gm-Message-State: APjAAAWTC8eMIEXFOY45BUWsH81oVMAq+weCe8Sj4G+1q1SRXOlxZhVs z0Kvy8hobxEmkcmkOd0tcgDQD8/J X-Google-Smtp-Source: APXvYqzuIZgrkGO2GVtygPQNN7vi4VND6PibcWpl7NrH2z3FAGpLraIpKjO6ne3UgYtunl4ddB7TKQ== X-Received: by 2002:a5d:6402:: with SMTP id z2mr4692800wru.211.1571933933620; Thu, 24 Oct 2019 09:18:53 -0700 (PDT) Original-Received: from [192.168.16.136] (p50975d3f.dip0.t-ipconnect.de. [80.151.93.63]) by smtp.gmail.com with ESMTPSA id f17sm14129591wrs.66.2019.10.24.09.18.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Oct 2019 09:18:52 -0700 (PDT) In-Reply-To: <1571805467.17453.2.camel@librehacker.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b 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:15820 Archived-At: 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