* Moving char-set->arbitrary into quickcheck proper?
@ 2021-03-25 12:46 Maxime Devos
0 siblings, 0 replies; only message in thread
From: Maxime Devos @ 2021-03-25 12:46 UTC (permalink / raw)
To: Timothy Sample; +Cc: guile-user
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
Hi,
Could the following procure from tests/kinds/octal.scm
in disarchive ...
<start snip>
(define (char-set->arbitrary cs)
(arbitrary
(gen (choose-char cs))
(xform (lambda (chr gen)
(generator-variant (char->integer chr) gen)))))
<end snip>
... be moved to guile-quickcheck? (quickcheck arbitrary)
I find that procedure useful for testing some parser code.
For now, I've simply copied the code.
Greetings,
Maxime
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-25 12:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-25 12:46 Moving char-set->arbitrary into quickcheck proper? Maxime Devos
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).