projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
strtoumax: fix typo in previous commit.
[gnulib.git]
/
tests
/
test-fmod.c
diff --git
a/tests/test-fmod.c
b/tests/test-fmod.c
index
b19e6d6
..
3bbbfe5
100644
(file)
--- a/
tests/test-fmod.c
+++ b/
tests/test-fmod.c
@@
-1,5
+1,5
@@
/* Test of fmod() function.
/* Test of fmod() function.
- Copyright (C) 2010-201
1
Free Software Foundation, Inc.
+ Copyright (C) 2010-201
3
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-23,11
+23,17
@@
#include "signature.h"
SIGNATURE_CHECK (fmod, double, (double, double));
#include "signature.h"
SIGNATURE_CHECK (fmod, double, (double, double));
+#include <float.h>
+
#include "macros.h"
#include "macros.h"
-volatile double x;
-volatile double y;
-double z;
+#define DOUBLE double
+#define L_(literal) literal
+#define MANT_DIG DBL_MANT_DIG
+#define MAX_EXP DBL_MAX_EXP
+#define FMOD fmod
+#define RANDOM randomd
+#include "test-fmod.h"
int
main ()
int
main ()
@@
-38,5
+44,7
@@
main ()
z = fmod (x, y);
ASSERT (z >= 2.962721817 && z <= 2.962721819);
z = fmod (x, y);
ASSERT (z >= 2.962721817 && z <= 2.962721819);
+ test_function ();
+
return 0;
}
return 0;
}