summary refs log tree commit diff
path: root/Test/C01arith.ztst
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-01-11 18:50:17 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2015-01-11 18:50:17 -0800
commit2753d49003006342e96b769422f7c50fd4093bde (patch)
treeb9f11b5d3ecb99ef84d3888c6ffd49eb5186d5c2 /Test/C01arith.ztst
parent39a6e8a7f5eebc337f47f88a95696140d63f2e2d (diff)
downloadzsh-2753d49003006342e96b769422f7c50fd4093bde.tar.gz
zsh-2753d49003006342e96b769422f7c50fd4093bde.tar.xz
zsh-2753d49003006342e96b769422f7c50fd4093bde.zip
34247: regression test for 34230.
Diffstat (limited to 'Test/C01arith.ztst')
-rw-r--r--Test/C01arith.ztst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst
index 59d182a13..8da17f7f4 100644
--- a/Test/C01arith.ztst
+++ b/Test/C01arith.ztst
@@ -18,6 +18,12 @@
 0:basic floating point arithmetic
 >31415.
 
+  integer rnd
+  (( rnd = ((29.1 % 13.0 * 10) + 0.5) ))
+  print $rnd
+0:Test floating point modulo function
+>31
+
   print $(( 0x10 + 0X01 + 2#1010 ))
 0:base input
 >27