about summary refs log tree commit diff
path: root/Test/C01arith.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-02-12 16:43:40 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-02-12 16:43:40 +0000
commit2c92d005d7c0b828dc9bec3f220543b716dad6ee (patch)
tree24cb70e449c9a16627d5e61658e1b3f428794efb /Test/C01arith.ztst
parent9ed500a1cd6d31522675b313d52fc5ba624095c7 (diff)
downloadzsh-2c92d005d7c0b828dc9bec3f220543b716dad6ee.tar.gz
zsh-2c92d005d7c0b828dc9bec3f220543b716dad6ee.tar.xz
zsh-2c92d005d7c0b828dc9bec3f220543b716dad6ee.zip
23165: fix problems with bases: error if over 36 and don't interpret octal
Diffstat (limited to 'Test/C01arith.ztst')
-rw-r--r--Test/C01arith.ztst12
1 files changed, 12 insertions, 0 deletions
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