GNU bug report logs -
#72154
srfi-64: test-error silently treats anything as #t
Previous Next
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.
Full log
View this message in rfc822 format
[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)]
This bug report was last modified 212 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.