]> Savannah Git Hosting - gnulib.git/commitdiff
modf tests: Make test sharper.
authorBruno Haible <bruno@clisp.org>
Thu, 6 Oct 2011 00:44:05 +0000 (02:44 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Oct 2011 00:44:05 +0000 (02:44 +0200)
* tests/test-modf.c (main): Strengthen upper bound.

ChangeLog
tests/test-modf.c

index eacc3ff7526710bd592a9748e28f3d8b99131f22..d384b8c7d35b17fe029c2653f009c0b43a6c36f5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-10-05  Bruno Haible  <bruno@clisp.org>
 
+       modf tests: Make test sharper.
+       * tests/test-modf.c (main): Strengthen upper bound.
+
        modf: Use a .m4 file.
        * m4/modf.m4: New file.
        * modules/modf (Files): Add it.
index c1b3cc1ddf70485ad195b9e17c7baeea78328163..c84566282389e9cce5488da5b0c48419e5913d75 100644 (file)
@@ -41,7 +41,7 @@ main ()
   /* A particular negative value.  */
   x = -5.972406760;
   y = modf (x, &z);
-  ASSERT (y >= -0.972406761 && y <= 0.972406759);
+  ASSERT (y >= -0.972406761 && y <= -0.972406759);
   ASSERT (z == -5.0);
 
   return 0;