From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4557 invoked from network); 23 Jan 2002 16:22:43 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 Jan 2002 16:22:43 -0000 Received: (qmail 1876 invoked by alias); 23 Jan 2002 16:22:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16489 Received: (qmail 1864 invoked from network); 23 Jan 2002 16:22:34 -0000 To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: Test failures in artih and arguments In-reply-to: "Felix Rosencrantz"'s message of "Wed, 23 Jan 2002 06:51:55 PST." <20020123145155.25539.qmail@web10408.mail.yahoo.com> Date: Wed, 23 Jan 2002 16:17:00 +0000 Message-ID: <6295.1011802620@csr.com> From: Peter Stephenson Felix Rosencrantz wrote: > I'm seeing 2 test failures on RedHat 7.2. Not sure how new these are. > > -FR. > > ./C01arith.ztst: starting. > *** /tmp/zsh.ztst.out.690 Tue Jan 22 10:01:53 2002 > --- /tmp/zsh.ztst.tout.690 Tue Jan 22 10:01:53 2002 > *************** > *** 1 **** > ! 31415 > --- 1 ---- > ! 31415. > Test ./C01arith.ztst failed: output differs from expected as shown > above for: > float light there > integer rnd > (( light = 3.1415 )) && > let 'there = light' && > print -- $(( rnd = there * 10000 )) > Was testing: basic floating point arithmetic > ./C01arith.ztst: test failed. This is when I added the `.' to floating point numbers to discriminate them from integers when handled as strings, zsh-workers/16423. The new output is now correct and the test is wrong. Index: Test/C01arith.ztst =================================================================== RCS file: /cvsroot/zsh/zsh/Test/C01arith.ztst,v retrieving revision 1.4 diff -u -r1.4 C01arith.ztst --- Test/C01arith.ztst 2001/07/09 18:31:25 1.4 +++ Test/C01arith.ztst 2002/01/23 16:14:33 @@ -16,7 +16,7 @@ print -- $(( rnd = there * 10000 )) # save rounding problems by converting to integer 0:basic floating point arithmetic ->31415 +>31415. print $(( 0x10 + 0X01 + 2#1010 )) 0:base input -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************