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#72372: srfi-64: test-approximate evaluates test-name multiple times Date: Tue, 30 Jul 2024 21:51:56 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26038"; mail-complaints-to="usenet@ciao.gmane.io" To: 72372@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Tue Jul 30 21:54:00 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 1sYsv0-0006Yp-OD for guile-bugs@m.gmane-mx.org; Tue, 30 Jul 2024 21:53:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYstz-00050m-7u; Tue, 30 Jul 2024 15:52:55 -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 1sYsty-00050d-EF for bug-guile@gnu.org; Tue, 30 Jul 2024 15:52:54 -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 1sYsty-0006y7-4U for bug-guile@gnu.org; Tue, 30 Jul 2024 15:52:54 -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=Pru+Uv1p/FuGxmua4uzOpgvInaA7JYctQTSQ6l3FKSQ=; b=pHnFgqLjso65i/92r5kGZXQdmUlQUDqQHP3erEE14eNzmvM9iqFZS1919TR0Zg47p/5TUo8U/CjXyRpjfXyTApa4lUeY5ucLMNlE37EtZECSWgBhAZ2/idc/yfqPIXz07oyZNFY74LBiNc4pJ1rL7kH8634VjpfMeZk1V9gdFhGlQ61QRliLC25qyl6T5oGaSOJhyXVVRmZmwL0PRbWsGh9i1UnhgTBny4q69Rvm0SRpLMY/dvOysl/s2ZLyEoc15kMxUBsnhHNpwkQpVAPTr0KBFVG5u/rjG2Y+erbTvDBpVH02vzkSNl28v6FE4tiUBMUXupVmC2pnJ9+8hB9OCA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sYsuC-0006dG-Kj for bug-guile@gnu.org; Tue, 30 Jul 2024 15:53:08 -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:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72372 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172236914825203 (code B ref -1); Tue, 30 Jul 2024 19:53:08 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jul 2024 19:52:28 +0000 Original-Received: from localhost ([127.0.0.1]:48471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYstY-0006YE-91 for submit@debbugs.gnu.org; Tue, 30 Jul 2024 15:52:28 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1sYstO-0006XA-20 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-0004sz-7t 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-0006rX-PS for bug-guile@gnu.org; Tue, 30 Jul 2024 15:52:02 -0400 Original-Received: by wolfsden.cz (Postfix, from userid 104) id DBE2329309E; 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=JF4tJFChvwuiqy9E37Yc8xfZ0zQF5pXZKywOkHqp3VY=; h=Date:From:To:Subject; b=lLy1D6n6UU4ymvJcfNJrM9aGJkXHOAIlhbwkN+DXJGIzILM6W+yDdTshz97B0hi+o TJy73g42AJzzadgndc8Ms7rJ1uSI/2Um8BIlyZ95opVmk+/L1diQp48PNLewF49jFi pdhQKOMQKnn5CfIg6FrRL1e8SKCljxp89OxawnkSXrNPNANns84JaKtb6k03QMs4kD uXwhjdDuuWE6DktxaQDyLsUGZUkTM56qYkoOJ1cMhgT9+4CgfuVYAdxFGUKEyr/YHM W0xVfoPTOC5l6+tznOOPovzxjWmWoUM5domO+yJHospEHLkQxEPm8VQobWybGKtfGG ps9I2SnTcdM7XXudPKnDMnFau+scyMs9Q2p8GlwxTN+GV7LKwjFqwaMe6MtzHhe5Rp PYNrpt5B1xBibtzZHymkOaW3sfhOd5E2HtTjHOHgVRUT2ihznb//gBp5aQ0fzD/VEQ tjuc56h8nTFJkvA/qjNRJICF3riwPMQgLTHWfk1zk7CSA31ILiu9h63NB5mrjRgaRw Xm2IQq45o6/TVl/PohbLusV45iKRwPP7ltmaQH9h6wH0l8lzeMhnCUUsQPNudGch8X qsG8D7T8iQz2izMgDVlU91uO4651MXuWXkQxH0Q/REztGciVUId7oWFterxnLM+7gF GMBsNLNiDSww+KB2HZqEGEoE= Original-Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 355362928E2 for ; 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=JF4tJFChvwuiqy9E37Yc8xfZ0zQF5pXZKywOkHqp3VY=; h=Date:From:To:Subject; b=lLy1D6n6UU4ymvJcfNJrM9aGJkXHOAIlhbwkN+DXJGIzILM6W+yDdTshz97B0hi+o TJy73g42AJzzadgndc8Ms7rJ1uSI/2Um8BIlyZ95opVmk+/L1diQp48PNLewF49jFi pdhQKOMQKnn5CfIg6FrRL1e8SKCljxp89OxawnkSXrNPNANns84JaKtb6k03QMs4kD uXwhjdDuuWE6DktxaQDyLsUGZUkTM56qYkoOJ1cMhgT9+4CgfuVYAdxFGUKEyr/YHM W0xVfoPTOC5l6+tznOOPovzxjWmWoUM5domO+yJHospEHLkQxEPm8VQobWybGKtfGG ps9I2SnTcdM7XXudPKnDMnFau+scyMs9Q2p8GlwxTN+GV7LKwjFqwaMe6MtzHhe5Rp PYNrpt5B1xBibtzZHymkOaW3sfhOd5E2HtTjHOHgVRUT2ihznb//gBp5aQ0fzD/VEQ tjuc56h8nTFJkvA/qjNRJICF3riwPMQgLTHWfk1zk7CSA31ILiu9h63NB5mrjRgaRw Xm2IQq45o6/TVl/PohbLusV45iKRwPP7ltmaQH9h6wH0l8lzeMhnCUUsQPNudGch8X qsG8D7T8iQz2izMgDVlU91uO4651MXuWXkQxH0Q/REztGciVUId7oWFterxnLM+7gF GMBsNLNiDSww+KB2HZqEGEoE= 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:10918 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-approximate: > This is equivalent to (except that each argument is only evaluated once): > > > (test-assert [test-name] > (and (>= test-expr (- expected error)) > (<= test-expr (+ expected error)))) However the test-name is evaluated multiple times: (use-modules (srfi srfi-64)) (test-begin "x") (test-approximate (pk "t") 1 1 0) Leading to: ;;; ("t") ;;; ("t") Have a nice day Tomas Volf