From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregory Marton Newsgroups: gmane.lisp.guile.bugs Subject: Re: A passing test case Date: Sat, 26 Jan 2008 09:28:59 -0500 (EST) Message-ID: References: <87sl0kafnb.fsf@ossau.uklinux.net> Reply-To: Gregory Marton NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1201357760 31173 80.91.229.12 (26 Jan 2008 14:29:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jan 2008 14:29:20 +0000 (UTC) Cc: bug-guile@gnu.org To: Neil Jerram Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Jan 26 15:29:39 2008 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JIm2K-0007Xg-9J for guile-bugs@m.gmane.org; Sat, 26 Jan 2008 15:29:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIm1t-0005DX-Eu for guile-bugs@m.gmane.org; Sat, 26 Jan 2008 09:29:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIm1p-0005Cx-Ih for bug-guile@gnu.org; Sat, 26 Jan 2008 09:29:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIm1k-0005C1-PW for bug-guile@gnu.org; Sat, 26 Jan 2008 09:29:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIm1k-0005By-HH for bug-guile@gnu.org; Sat, 26 Jan 2008 09:29:00 -0500 Original-Received: from outgoing.csail.mit.edu ([128.30.2.149]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIm1k-00076O-Iz for bug-guile@gnu.org; Sat, 26 Jan 2008 09:29:00 -0500 Original-Received: from ashmore.csail.mit.edu ([128.30.44.32]) by outgoing.csail.mit.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JIm1j-0007U5-TN; Sat, 26 Jan 2008 09:28:59 -0500 Original-Received: from gremio (helo=localhost) by ashmore.csail.mit.edu with local-esmtp (Exim 4.50) id 1JIm1j-0000K4-KZ; Sat, 26 Jan 2008 09:28:59 -0500 In-Reply-To: <87sl0kafnb.fsf@ossau.uklinux.net> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3730 Archived-At: The differences are not significant. I guess I wanted to make clear in the test case that this isn't something to do with literal rationals, and I didn't want the test case to be printing things to the console. Thanks, Grem > Gregory Marton writes: > >> Hi folks, >> >> I just wanted to send in a test case for a bug that is fixed as of >> guile 1.8.2, but recently bit me, and it's just not that obvious to >> test for. It is essentially exposed in 1.8.1 by >> (let ((x 1/2)) >> (display x) >> (equal? x 1/2)) ===> #f ! > > Thanks, but why the differences between the code above and the patch > below? Are they significant? > >> --- test-suite/tests/fractions.test.1.8.3 2008-01-25 20:08:57.000000000 -0500 >> +++ test-suite/tests/fractions.test 2008-01-25 20:09:07.000000000 -0500 >> @@ -400,3 +400,8 @@ >> (with-test-prefix "fraction generics" >> (testeq (G 1) 'integer) >> (testeq (G 2/3) 'fraction)) >> + >> +(pass-if (let ((x (/ 1 2))) >> + (with-output-to-string (lambda () (display x))) >> + (equal? x (/ 1 2)))) >> + > > Regards, > Neil > > -- ------ __@ Gregory A. Marton http://csail.mit.edu/~gremio/ --- _`\<,_ . -- (*)/ (*) Let the machine do the dirty work. ~~~~~~~~~~~~~~~~-~~~~~~~~_~~~_~~~~~v~~~~^^^^~~~~~--~~~~~~~~~~~~~~~++~~~~~~~