about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2013-11-14 11:49:22 +0000
committerPeter Stephenson <pws@zsh.org>2013-11-14 11:49:22 +0000
commit4c611f9323a516b95c3da19065e3f9040074de7e (patch)
treec289d8059a1faca14795c1345e6c31f2642e3369 /Test
parent7a94960957e37c198e93dfbd7af864799b01650d (diff)
downloadzsh-4c611f9323a516b95c3da19065e3f9040074de7e.tar.gz
zsh-4c611f9323a516b95c3da19065e3f9040074de7e.tar.xz
zsh-4c611f9323a516b95c3da19065e3f9040074de7e.zip
31982: detection of floating point constants was problematic.
Remove the cause and fix the original problem with floating point
numbers with leading zeros (users/17445) a different way.
Diffstat (limited to 'Test')
-rw-r--r--Test/C01arith.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst
index c19135ce6..7b005c2ab 100644
--- a/Test/C01arith.ztst
+++ b/Test/C01arith.ztst
@@ -258,3 +258,11 @@
 >0.5
 >3
 >3.
+
+  print $(( 0x30 + 0.5 ))
+  print $(( 077 + 0.5 ))
+  (setopt octalzeroes; print $(( 077 + 0.5 )) )
+0:Mixed float and non-decimal integer constants
+>48.5
+>77.5
+>63.5