Fixing the test-group bug
Wolfgang Corcoran-Mathe 13 Dec 2023 01:35 UTC
Hi all,
The sample implementation of test-group has a bug. Running the
following causes an error:
(test-group "foo" (test-eqv 4 4))
Guile says: "In procedure struct-vtable: Wrong type argument in
position 1 (expecting struct): #f"
I believe this is the same bug that Jérémy Korwin-Zmijowski reported
back in August (https://srfi-email.schemers.org/srfi-64/msg/23164526/).
Calling test-begin for some other purpose before running the test
group eliminates the error. Clearly test-group isn't initializing
something; I tracked it down and determined it's the current test
runner.
I've opened a pull request on Github patching this bug:
https://github.com/scheme-requests-for-implementation/srfi-64/pull/8
If the solution is simplistic, please let me know how to improve it.
Regards,
Wolf
--
Wolfgang Corcoran-Mathe <xxxxxx@sigwinch.xyz>