From: <janneke@gnu.org>
To: guile-user@gnu.org
Subject: Extending new srfi-64 (yay!) and missing file:line: FAIL?
Date: Tue, 05 Nov 2024 09:14:34 +0100 [thread overview]
Message-ID: <87jzdidrmd.fsf@gnu.org> (raw)
Hi,
I found that new srfi-64 luckily can be easily extended to take custom
equality functions, yay!...if only %test-2 was exported...
Also, jumping to the test location from the compilation buffer broke for
me. So I'm now carrying this patch now.
Maybe I am missing something, is there a better way?
Greetings,
Janneke
--8<---------------cut here---------------start------------->8---
diff --git a/module/srfi/srfi-64.scm b/module/srfi/srfi-64.scm
index 98fcef645f..8bc892d7aa 100644
--- a/module/srfi/srfi-64.scm
+++ b/module/srfi/srfi-64.scm
@@ -115,6 +115,7 @@
test-runner-xpass-count
;; Additional functionality not in SRFI-64:
+ %test-2
define-test
test-procedure?
test-thunk
@@ -435,8 +436,9 @@ instead."
result-kind
(test-runner-test-name runner))
(unless (member result-kind '(pass xfail))
- (maybe-print-prop 'source-file #f)
- (maybe-print-prop 'source-line #f)
+ (format #t "~a:~a: FAIL\n"
+ (test-result-ref runner 'source-file)
+ (test-result-ref runner 'source-line))
(maybe-print-prop 'source-form #t)
(maybe-print-prop 'expected-value #f)
(maybe-print-prop 'expected-error #t)
--8<---------------cut here---------------end--------------->8---
--
Janneke Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com
reply other threads:[~2024-11-05 8:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87jzdidrmd.fsf@gnu.org \
--to=janneke@gnu.org \
--cc=guile-user@gnu.org \
/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).