GNU bug report logs - #72154
srfi-64: test-error silently treats anything as #t

Previous Next

Package: guile;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Wed, 17 Jul 2024 10:24:01 UTC

Severity: normal

Merged with 66776

Done: Tomas Volf <~@wolfsden.cz>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72154 in the body.
You can then email your comments to 72154 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#72154; Package guile. (Wed, 17 Jul 2024 10:24:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tomas Volf <~@wolfsden.cz>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Wed, 17 Jul 2024 10:24:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tomas Volf <~@wolfsden.cz>
To: bug-guile <at> gnu.org
Subject: test-error does not work
Date: Wed, 17 Jul 2024 12:22:54 +0200
[Message part 1 (text/plain, inline)]
Hi,

currently the test-error does not seem to work:

    (test-error "should throw" 'foo
      (throw 'bar))

results in

    test-name: should throw
    location: test.scm:191
    source:
    + (test-error "should throw" 'foo (throw 'bar))
    expected-error:
    + foo
    actual-error:
    + (bar)
    result: PASS

According to feedback from mastodon it is not really implemented.  That does not
seem to be documented.  Maybe it would be better to just not export it?  Or it
should throw 'not-implemented instead of just passing?

Have a nice day,
Tomas

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[signature.asc (application/pgp-signature, inline)]

Changed bug title to 'srfi-64: test-error silently treats anything as #t' from 'test-error does not work' Request was from Tomas Volf <~@wolfsden.cz> to control <at> debbugs.gnu.org. (Tue, 30 Jul 2024 20:50:02 GMT) Full text and rfc822 format available.

Merged 66776 72154. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 13 Sep 2024 15:51:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 72154 <at> debbugs.gnu.org and Tomas Volf <~@wolfsden.cz> Request was from Tomas Volf <~@wolfsden.cz> to control <at> debbugs.gnu.org. (Mon, 21 Oct 2024 20:30:13 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 19 Nov 2024 12:24:13 GMT) Full text and rfc822 format available.

This bug report was last modified 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.