Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Test failures in artih and arguments



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 <pws@xxxxxxx>                  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.
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author