From 2c92d005d7c0b828dc9bec3f220543b716dad6ee Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 12 Feb 2007 16:43:40 +0000 Subject: 23165: fix problems with bases: error if over 36 and don't interpret octal --- Test/C01arith.ztst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Test') diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst index 9867b5d9a..e4ddebc12 100644 --- a/Test/C01arith.ztst +++ b/Test/C01arith.ztst @@ -136,3 +136,15 @@ print $(( 5, (3 + 7, 4) )) 0:commas and parentheses, part 1 >4 + + (setopt octalzeroes; print $(( 08#77 ))) +0:octalzeroes doesn't affect bases +>63 + + print $(( 36#z )) +0:bases up to 36 work +>35 + + print $(( 37#z )) +1:bases beyond 36 don't work +?(eval):1: invalid base: 37 -- cgit 1.4.1