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 eacc3ff..d384b8c 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 c1b3cc1..c845662 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;