summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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