From 431c22024d8af440ca4b79ce951896f3bcd0d7cc Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 8 Dec 2012 19:50:20 +0000 Subject: users/17445: fix handling of leading zeroes in floating point --- Test/C01arith.ztst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Test/C01arith.ztst') diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst index e5845d37f..02d1519a4 100644 --- a/Test/C01arith.ztst +++ b/Test/C01arith.ztst @@ -152,6 +152,16 @@ 0:commas and parentheses, part 1 >4 + print $(( 07.5 )) + (setopt octalzeroes; print $(( 09.5 ))) +0:leading zero doesn't affect floating point +>7.5 +>9.5 + + (setopt octalzeroes; print $(( 09 ))) +1:octalzeroes rejects invalid constants +?(eval):1: bad math expression: operator expected at `9 ' + (setopt octalzeroes; print $(( 08#77 ))) 0:octalzeroes doesn't affect bases >63 -- cgit 1.4.1