guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Moving char-set->arbitrary into quickcheck proper?


From: Maxime Devos
Subject: Moving char-set->arbitrary into quickcheck proper?
Date: Thu, 25 Mar 2021 13:46:36 +0100
User-agent: Evolution 3.34.2

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: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]