summaryrefslogtreecommitdiff
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
parent39a6e8a7f5eebc337f47f88a95696140d63f2e2d (diff)
downloadzsh-2753d49003006342e96b769422f7c50fd4093bde.tar.gz
zsh-2753d49003006342e96b769422f7c50fd4093bde.zip
34247: regression test for 34230.
-rw-r--r--ChangeLog2
-rw-r--r--Test/C01arith.ztst6
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a963399c3..5bbdd175a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2015-01-11 Barton E. Schaefer <schaefer@zsh.org>
+ * 34247: Test/C01arith.ztst: regression test for 34230.
+
* 34230: Src/math.c: call fmod() for modulo with floats
2015-01-11 Peter Stephenson <p.w.stephenson@ntlworld.com>
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