projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8b58a0
)
modf tests: Make test sharper.
author
Bruno Haible
<bruno@clisp.org>
Thu, 6 Oct 2011 00:44:05 +0000
(
02:44
+0200)
committer
Bruno Haible
<bruno@clisp.org>
Thu, 6 Oct 2011 00:44:05 +0000
(
02:44
+0200)
* tests/test-modf.c (main): Strengthen upper bound.
ChangeLog
patch
|
blob
|
history
tests/test-modf.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
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.
diff --git
a/tests/test-modf.c
b/tests/test-modf.c
index
c1b3cc1
..
c845662
100644
(file)
--- a/
tests/test-modf.c
+++ b/
tests/test-modf.c
@@
-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;