From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Volf <~@wolfsden.cz> Newsgroups: gmane.lisp.guile.bugs Subject: bug#72374: srfi-64: test-apply does not accept convenience specifiers Date: Tue, 30 Jul 2024 21:51:55 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27350"; mail-complaints-to="usenet@ciao.gmane.io" To: 72374@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Tue Jul 30 21:54:20 2024 Return-path: Envelope-to: guile-bugs@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 1sYsvL-0006xi-LR for guile-bugs@m.gmane-mx.org; Tue, 30 Jul 2024 21:54:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYsu1-000520-Co; Tue, 30 Jul 2024 15:52:57 -0400 Original-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 ) id 1sYsu0-00051j-Ep for bug-guile@gnu.org; Tue, 30 Jul 2024 15:52:56 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sYsu0-0006yL-5M for bug-guile@gnu.org; Tue, 30 Jul 2024 15:52:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:From:Date:To:Subject; bh=t3YZTYmIltBLWNNwBRUjtQ9p31yrus1gtz85QUHckcI=; b=O8C6Z+IyqASjkAFS9eRw/bWS2Mw9JSkTP93RwvSZUiwf8mMJc/p62Nx6M/Ag+OX8gfD9/mqpNUDIePplKwSG68Vs818F6JR5NIn1+K9WTSrgsYRO6Gt8A89KRXwCwLz8yYOJUVGekFS408fdTMyuTuzMzWU2mwJFjdoapsAHrtoWqddSGD8H4HZKriZ+v2M9q6by3hnzLeL8+3/Kdq+I20zA/PCYaJRrqC+FRpZpRa9ZpdgkrStM+HhZgLqZlq5ajxH5fMglXMXyfeA30wiQ5bnVDPdbC3Jy+5agArz1Qu25smC1w7va2zzWKNFkrtHaYPThDh+KJ4TAsAvyG6fe9w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sYsuE-0006dk-Bs for bug-guile@gnu.org; Tue, 30 Jul 2024 15:53:10 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 30 Jul 2024 19:53:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72374 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172236915125253 (code B ref -1); Tue, 30 Jul 2024 19:53:10 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jul 2024 19:52:31 +0000 Original-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 Original-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 Original-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 Original-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 Original-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= Original-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= Content-Disposition: inline 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:10927 Archived-At: 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