X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-remainder.c;h=dc430e49e0ccc1811accca4013ebc415025bf9ca;hb=35170063f45ccb74210505c198c8c0ab5c532be0;hp=803c76d75280db7cb80bcba9facfc03fc2155c55;hpb=4b6dad7e35019625bd5eb30796beebac099a7422;p=gnulib.git diff --git a/tests/test-remainder.c b/tests/test-remainder.c index 803c76d75..dc430e49e 100644 --- a/tests/test-remainder.c +++ b/tests/test-remainder.c @@ -1,5 +1,5 @@ /* Test of remainder() function. - Copyright (C) 2010-2011 Free Software Foundation, Inc. + Copyright (C) 2010-2013 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 @@ -23,11 +23,17 @@ #include "signature.h" SIGNATURE_CHECK (remainder, double, (double, double)); +#include + #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 REMAINDER remainder +#define RANDOM randomd +#include "test-remainder.h" int main () @@ -38,5 +44,7 @@ main () z = remainder (x, y); ASSERT (z >= -0.178870837 && z <= -0.178870835); + test_function (); + return 0; }