From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 30 15:52:30 2024 Received: (at submit) by debbugs.gnu.org; 30 Jul 2024 19:52:31 +0000 Received: from localhost ([127.0.0.1]:48487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYstZ-0006Yj-8i for submit@debbugs.gnu.org; Tue, 30 Jul 2024 15:52:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:44632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1sYstO-0006XB-4L for submit@debbugs.gnu.org; Tue, 30 Jul 2024 15:52:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1sYst9-0004tM-B4 for bug-guile@gnu.org; Tue, 30 Jul 2024 15:52:03 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1sYst6-0006rU-HI for bug-guile@gnu.org; Tue, 30 Jul 2024 15:52:03 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id CF09F29309C; Tue, 30 Jul 2024 19:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1722369116; bh=BQ/Koj2PgxJQzLY19+oMBh8rIFV/zr+MhSqE7PY1E6I=; h=Date:From:To:Subject; b=oikcyJ/oDXeZuwIZwAgRRx9pT6CJlBVL6UndyQ2VIaIozzXTkJPmV1DVtqkZGkBsN 9LrUPRgIbR53v6wRRxoVJXtkoVnZeH2IOtbGHj1RPlks42yNsRkdTqIJZvj9ZqQJDZ sfOiM22aRAYJI57PgwQNu2GB5ixc1t64xc4tgfgPnXT4qb021frNhK9/VPko+PtSWG Xar7PPYaUmHO0+zjM1btMjatD0O37HUzQj+Kp8rQvZGKeIZREDZZg8vkAc8u9NESNX xCZ/oSf6RlmRI95fbuy0M0V85GwFiR1X7TVLObKZ8vXkD2hSDAYBw6XYcAM0eGLsZq RJArbCNRhvTuG84mWpBo4H8vG4BLfmOd9k6Y+TlAfIEMRIR7+6f3uKPivlGBKdV334 p/qIvDTjYy6nI4u2jp/EeJ6NbNR0fQ6/TESLgF3Ve7yXBjfTyAKErmShxjJvZmfoHs dmZjz88GDMdVIYQaU70Ot2sCjeLaIPBaY3tSJ9M9HeUyAkfblLF9qahHuBMFhNm9Ym yqkkNriqcAZibvbU3O7TJcoQfc5e0nsrQ0GjS1ekCo85FziH5uAOD9NMhYE3x7jC2V ERu2AL18sYHsOfsEhrEt5MIEt4JowoNQzKkKHj6qFe6HrhyGcolAJamdCcX3bEW+0T 1XPGZbPYZroBEZl+Cxc0oDyM= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id D4A1A2928E1 for ; Tue, 30 Jul 2024 19:51:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1722369115; bh=BQ/Koj2PgxJQzLY19+oMBh8rIFV/zr+MhSqE7PY1E6I=; h=Date:From:To:Subject; b=syhdaK0shyUkg/1CMCAj+XuhkTZ7DihnIZ2s2zQyxnQWWjCuIBMWF+n1VHPJ9Ts6K GthYhgjCLgNavGtgkUbYGPPO0jpKO/deLSbIshwLeYYAIGFjbnRhBBNlrsE8q0/jh3 B6xc9x0LKDHDaLDz8TOHju2D62B5tNidkllUyC02PjOQI/hi0MkiVwhSeo4849xa8X kPJBEFsqXEFyNLwwKYCGSGiw+xit3qd+C4bE/cSpllVRXJfhQTfqzu/f9u50toijus 0txN2CH/tSWCm6IUamonoZDmh6RdPB4qPvpjzLaztVOOgczX/WONh0f355YV0WdINk HWR0vVwYo/gmazaMWx5S/M+zP/52Z/T4U/PfyRAea9zlWQ88pHrV55srU+Ye9IZto8 oJ4aNjwWPuoYhduFDGnSKvkHen2CPYd06MF7C9n1BDtT8655er6UNHSQ5l4zXhKDSS fwxTnZEu3EueOboyYFM89Jp0PyYjrb2WrI9pGnp9HP4ULhwGOTDdbjvDOlk6APZcR8 YKFfvp7o3nb5NrZGm+Fsd/aVB6wCn6mXcyzdfIgu6aOt4SP6B5HgvYi+I3VyPdj+rS Tia+vdGobad5gjqPSJm/VzNBQ6U9eDMQ4mI3j0WM5Dh+Pd5HxmrRExVBv24ioAqZLg dKqXMXVugF9/QG5U3zDhBZe4= Date: Tue, 30 Jul 2024 21:51:55 +0200 From: Tomas Volf <~@wolfsden.cz> To: bug-guile@gnu.org Subject: srfi-64: test-apply does not accept convenience specifiers Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. The specification says the following regarding the test-apply: > If one or more specifiers are listed then only tests matching the specifiers > are executed. The specifiers are defined in `Test specifiers' section: > [..] For convenience, a specifier may also be a non-procedure value, which is > coerced to a specifier procedure, as described below for count and name. That means that following should work: (use-modules (srfi srfi-64)) (test-apply 1 (λ () (test-assert #t))) However it does not: Backtrace: In ice-9/boot-9.scm: 1752:10 12 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In unknown file: 11 (apply-smob/0 #) In ice-9/boot-9.scm: 724:2 10 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 9 (_ #(#(#))) In ice-9/boot-9.scm: 2836:4 8 (save-module-excursion _) 4388:12 7 (_) In srfi/srfi-64/testing.scm: 947:34 6 (test-apply 1 #) 944:21 5 (test-apply _ #) 688:12 4 (_) 648:2 3 (%test-on-test-begin #) 266:21 2 (%test-should-execute #) 257:17 1 (%test-any-specifier-matches (1) #) 257:17 0 (%test-any-specifier-matches # …) srfi/srfi-64/testing.scm:257:17: In procedure %test-any-specifier-matches: Wrong type to apply: 1 The string variant is also not supported, as in: (use-modules (srfi srfi-64)) (test-apply "t-a" (λ () (test-assert #t))) Resulting in: [..] srfi/srfi-64/testing.scm:257:17: In procedure %test-any-specifier-matches: Wrong type to apply: "t-a" Have a nice day Tomas Volf From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 01 18:18:06 2024 Received: (at 72374) by debbugs.gnu.org; 1 Oct 2024 22:18:06 +0000 Received: from localhost ([127.0.0.1]:54022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svlC2-0005gx-41 for submit@debbugs.gnu.org; Tue, 01 Oct 2024 18:18:06 -0400 Received: from mail-ed1-f50.google.com ([209.85.208.50]:38501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svlBz-0005gr-Nv for 72374@debbugs.gnu.org; Tue, 01 Oct 2024 18:18:04 -0400 Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5c895d975e5so389894a12.2 for <72374@debbugs.gnu.org>; Tue, 01 Oct 2024 15:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727821023; x=1728425823; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=eLIAjNvqBGIdSwikET18+VYL6u53ZE2QUrW5XljVyJ4=; b=aOiBD4palVGRPcOBctWdCg0qfQXgwTffl3JKpXZUU4WloA0hLz9T6bYVQLmE17Zqga yygX6j1lhEmrn+LoWIkH6rJwT4fMIXTdMk6J0/oc45M+AKo481N5boC7gnDfmkxictDt jy1aLs22h2qgpK6Y5PhwN+VX1FvDLzrN9WzzO0GswD24uIluT14gABBEoPXCwRL8bcyA QQdLQRnVYVol8q6LceJlsNtgBVH57j2nv/Ij5fobaRP3T1XDhlZbBpUhEoIYRHuuDU5+ Nhcs3RgQ94OmZuD2xZ8UAUc3RGbdzCBAseaNyzUeXyp5SVDwKjT31CKciHTSHdSX3sT6 mlew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727821023; x=1728425823; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eLIAjNvqBGIdSwikET18+VYL6u53ZE2QUrW5XljVyJ4=; b=BUjZBWLZE31EN38/Y3UR9n9EN6Wzpx4O6rIzrV/VouxgM2J/zTc073vrdnAtq9BEiK QF4g7lDRu3MLwvpLtmf/DnDEHmZtMJUDydZHLThnTMMkS3iITIKyHNKYvXfmSU45KzRb zwuLBlrnx7+Hv0Dyh8m+cgAVfJUuI00ABcJQ2rulgtCaae3HqsOANuvA+hPYwsqwBQwg t69egEwwUK3T+pC+YGMyhScvLLBb5P593n0gOFKcR2gD/4jK0vkNutD8Ek6YA8LjX8Uc bKLIA9Zpci154pOAxeFQaCGF7KT9qvqgt+Q52WjU4GaUOx9LUofnb14afGdsVe8NWu4i ZXCQ== X-Forwarded-Encrypted: i=1; AJvYcCVtgdj4zlcDlNBVYuF4YY72exSDLvNqnRo7JIpaJH0fdbtbpOQBziTiTbojaIiyqqgKI17PFA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwxptiXc5wj2ewpuJeTGOzkd3uBhQz/df/qYyqfDZSbGxoa+wzL 3GW4JKC+DknYJx0J8476XxkJCNnlrjbfrCJ667n1QTioHhfiW69d X-Google-Smtp-Source: AGHT+IG//ne+cm/OkEX0xQqRnR9DHbhckWQk0GfvvmgLn/11Aq0i78onbrWSzl4MUMmLHst11O0Cbw== X-Received: by 2002:a17:907:e8c:b0:a90:17fc:3f60 with SMTP id a640c23a62f3a-a98f8261956mr35629666b.8.1727821023020; Tue, 01 Oct 2024 15:17:03 -0700 (PDT) Received: from ?IPV6:2003:106:8f04:c300:95ac:529d:6db3:196b? (p200301068f04c30095ac529d6db3196b.dip0.t-ipconnect.de. [2003:106:8f04:c300:95ac:529d:6db3:196b]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a93c2775b47sm782050466b.19.2024.10.01.15.17.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Oct 2024 15:17:02 -0700 (PDT) Message-ID: <8b65bed6-fa95-4564-b690-b325afc32554@gmail.com> Date: Wed, 2 Oct 2024 00:17:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#72374: srfi-64: test-apply does not accept convenience specifiers To: Tomas Volf <~@wolfsden.cz>, 72374@debbugs.gnu.org References: Content-Language: en-US From: Taylan Kammer In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72374 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > The specification says the following regarding the test-apply: > >> If one or more specifiers are listed then only tests matching the specifiers >> are executed. > The specifiers are defined in `Test specifiers' section: > >> [..] For convenience, a specifier may also be a non-procedure value, which is >> coerced to a specifier procedure, as described below for count and name. > That means that following should work: > > (use-modules (srfi srfi-64)) > (test-apply 1 (λ () (test-assert #t))) > > However it does not: > > Backtrace: > In ice-9/boot-9.scm: > 1752:10 12 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) > In unknown file: > 11 (apply-smob/0 #) > In ice-9/boot-9.scm: > 724:2 10 (call-with-prompt _ _ #) > In ice-9/eval.scm: > 619:8 9 (_ #(#(#))) > In ice-9/boot-9.scm: > 2836:4 8 (save-module-excursion _) > 4388:12 7 (_) > In srfi/srfi-64/testing.scm: > 947:34 6 (test-apply 1 #) > 944:21 5 (test-apply _ #) > 688:12 4 (_) > 648:2 3 (%test-on-test-begin #) > 266:21 2 (%test-should-execute #) > 257:17 1 (%test-any-specifier-matches (1) #) > 257:17 0 (%test-any-specifier-matches # …) > > srfi/srfi-64/testing.scm:257:17: In procedure %test-any-specifier-matches: > Wrong type to apply: 1 > > The string variant is also not supported, as in: > > (use-modules (srfi srfi-64)) > (test-apply "t-a" (λ () (test-assert #t))) > > Resulting in: > > [..] > srfi/srfi-64/testing.scm:257:17: In procedure %test-any-specifier-matches: > Wrong type to apply: "t-a" > > Have a nice day > Tomas Volf > Looks like a bug. Fixed in my implementation via this commit:     https://codeberg.org/taylan/scheme-srfis/commit/c14388e475dfe6a20cdd090d397813868dee0137 An equivalent fix shouldn't be *too* difficult to implement in the upstream implementation, but I'm not touching the test-apply implementation in there because it's demonic. :-) If someone wants to try it though, what's called `make-pred` in my code is called `%test-as-specifier` in the upstream code, and just like in my fix it just needs to be applied to the specifiers at some point to make sure they're all procedures. - Taylan From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 21 16:29:21 2024 Received: (at control) by debbugs.gnu.org; 21 Oct 2024 20:29:21 +0000 Received: from localhost ([127.0.0.1]:53543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2z1l-0004Xp-1E for submit@debbugs.gnu.org; Mon, 21 Oct 2024 16:29:21 -0400 Received: from wolfsden.cz ([37.205.8.62]:38866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1t2z1h-0004XC-BQ for control@debbugs.gnu.org; Mon, 21 Oct 2024 16:29:17 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id CC8203310D2; Mon, 21 Oct 2024 20:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1729542529; bh=LxZTF7cVEThCsAMbSEUCbNL3XwaQQ/KW1iseQuyqOZE=; h=Date:To:From:Subject; b=wdQMfDOOP9f5U55hsKdrQH7APvKL7DZN38SbeS/hRcxtYZuZHyqQMLn6KJraHrETJ kPV30leaG3ZDUC7PVUX7F+XIF7x3N3Gl9LAdfbOJjVSQsbY5r/O307kwococ6vTjea x/9LLq+yivEHn4ig1yBlCz3jg7lM0VBK5dWX2/lGB4bd6mGCu/1Cx35pXyMzJNP3Y0 2ei9nJcoeBOnziCw+Ze3OuF56RFTX1bL2kuIdIbOat/xNh1Tt84KkP4fXWM5b0KweY elJJ6RP0O1ONdcGzhnrGAH9pxCVHdCjxbxjz3x22wLriPVGBbRFwQbwRefCHjPSKmn Gg3NCJuYGY6awcgPgDL5rAxrxx6QsgQQ5N74vtI2mT5YGMxzsD+PCJbM2XFWRqzSgP 0tuxX5S7qXUpy7HI48ZpEJB65NfQ6O2ck3KwbSZsoc3T+DNcvryDVZgZTHaQPi6n4m QqU3bQcaK1s/e7fWsVTYbbBUei4C4+QzBruOVmJuVsL72z2ffIIGED9bnScnEV7PgF spuoxHNXYFOK6Ex1dT6Vl1T179uVaVh+HFhWktTNA8DqW4xKGRL1ziSpegQmx4qZFx v0OkPqeBpH/N8ng7Vw2Fw/iy2FlApTb9wGiWfpgnQk6LPKAiEaDIEUEk1WI7PTPTED D7eyVDCOEK7RO1RdZb/k7cL8= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (unknown [193.32.127.157]) by wolfsden.cz (Postfix) with ESMTPSA id 6732733075A for ; Mon, 21 Oct 2024 20:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1729542529; bh=LxZTF7cVEThCsAMbSEUCbNL3XwaQQ/KW1iseQuyqOZE=; h=Date:To:From:Subject; b=wdQMfDOOP9f5U55hsKdrQH7APvKL7DZN38SbeS/hRcxtYZuZHyqQMLn6KJraHrETJ kPV30leaG3ZDUC7PVUX7F+XIF7x3N3Gl9LAdfbOJjVSQsbY5r/O307kwococ6vTjea x/9LLq+yivEHn4ig1yBlCz3jg7lM0VBK5dWX2/lGB4bd6mGCu/1Cx35pXyMzJNP3Y0 2ei9nJcoeBOnziCw+Ze3OuF56RFTX1bL2kuIdIbOat/xNh1Tt84KkP4fXWM5b0KweY elJJ6RP0O1ONdcGzhnrGAH9pxCVHdCjxbxjz3x22wLriPVGBbRFwQbwRefCHjPSKmn Gg3NCJuYGY6awcgPgDL5rAxrxx6QsgQQ5N74vtI2mT5YGMxzsD+PCJbM2XFWRqzSgP 0tuxX5S7qXUpy7HI48ZpEJB65NfQ6O2ck3KwbSZsoc3T+DNcvryDVZgZTHaQPi6n4m QqU3bQcaK1s/e7fWsVTYbbBUei4C4+QzBruOVmJuVsL72z2ffIIGED9bnScnEV7PgF spuoxHNXYFOK6Ex1dT6Vl1T179uVaVh+HFhWktTNA8DqW4xKGRL1ziSpegQmx4qZFx v0OkPqeBpH/N8ng7Vw2Fw/iy2FlApTb9wGiWfpgnQk6LPKAiEaDIEUEk1WI7PTPTED D7eyVDCOEK7RO1RdZb/k7cL8= Date: Mon, 21 Oct 2024 22:28:48 +0200 Message-ID: <86b044141fe062ae40b506c26c116673@wolfsden.cz> To: control@debbugs.gnu.org From: Tomas Volf <~@wolfsden.cz> Subject: control message for bug #72374 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 72374 quit From unknown Sun Sep 14 01:42:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 19 Nov 2024 12:24:20 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator