From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.user Subject: Moving char-set->arbitrary into quickcheck proper? Date: Thu, 25 Mar 2021 13:46:36 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-LBqlJIkMTBdejqYkv/QK" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18078"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.34.2 Cc: guile-user@gnu.org To: Timothy Sample Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu Mar 25 13:54:16 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lPPVA-0004bn-Ta for guile-user@m.gmane-mx.org; Thu, 25 Mar 2021 13:54:16 +0100 Original-Received: from localhost ([::1]:50564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPPV9-0003tF-Vp for guile-user@m.gmane-mx.org; Thu, 25 Mar 2021 08:54:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPPUu-0003t5-0O for guile-user@gnu.org; Thu, 25 Mar 2021 08:54:00 -0400 Original-Received: from andre.telenet-ops.be ([2a02:1800:120:4::f00:15]:42710) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPPUq-00045o-5s for guile-user@gnu.org; Thu, 25 Mar 2021 08:53:59 -0400 Original-Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by andre.telenet-ops.be with bizsmtp id kctp2400c0mfAB401ctqbZ; Thu, 25 Mar 2021 13:53:50 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1616676830; bh=PzGzWS39It4xCwIGLgzGu+oJ8pVub9KBbfWnyQDtxbE=; h=Subject:From:To:Cc:Date; b=i9VpKEXXvQvqDwORRgSP9Mckbjx6NOoiIHQXLePsJtJZhQEb6fgs6riAzq7FzuiI7 489deuX1gNOxZCQpzpG4yOqO3g65dVveZ4Cn/voM7eEbUxzPgCKjxMg0RsXW1s8VK5 +PrpSGIxvVkwhCDeUWsYf+mgmcaqhG5ud2ANGQPdqxIKR4rAUtP70mbEFw1kybVTIf B1r5Jv67pLG0UwV7iwj8WZiv0I8P4rRzHIkpHZJVvZvwL++g4SDnog5Tfgh8AOTgcq p5NZmW+ZfWjTURtw1DVviav156R+8/xS7dEHNmBG/t9YoOfYXEiVfL/iqRdje14rGq 25tmAAvB4LS/g== Received-SPF: pass client-ip=2a02:1800:120:4::f00:15; envelope-from=maximedevos@telenet.be; helo=andre.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17377 Archived-At: --=-LBqlJIkMTBdejqYkv/QK Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Could the following procure from tests/kinds/octal.scm in disarchive ... (define (char-set->arbitrary cs) (arbitrary (gen (choose-char cs)) (xform (lambda (chr gen) (generator-variant (char->integer chr) gen))))) ... 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 --=-LBqlJIkMTBdejqYkv/QK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iI0EABYIADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYFyGGhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7khCAQDNM6lBrilmuKtW2DCO2T8Ej5i/ Tm42o1SV25s7tbuArgEA5AvSA/zy0d8IrY/5Yxz5eAaviKFtMKgp3DrlLuaFSgI= =+ZR/ -----END PGP SIGNATURE----- --=-LBqlJIkMTBdejqYkv/QK--