test also numbers in -5 to 5 range

This commit is contained in:
Jeff Hill
2009-07-23 17:32:33 +00:00
parent 7315f02888
commit 844ed6345a

View File

@@ -51,7 +51,7 @@ void Test :: execute ()
static const unsigned lowPrecision = 2;
static const unsigned highPrecision = DBL_MANT_DIG;
for ( unsigned i = 0; i < 10; i++ ) {
for ( unsigned i = 0; i < 3; i++ ) {
double mVal = rand ();
mVal /= (RAND_MAX + 1);
double fEVal = rand ();
@@ -64,6 +64,14 @@ void Test :: execute ()
_prec <= highPrecision; _prec += 4u ) {
_measure ();
}
_srcVal = rand ();
_srcVal /= (RAND_MAX + 1);
_srcVal *= 10.0;
_srcVal -= 5.0;
for ( _prec = lowPrecision;
_prec <= highPrecision; _prec += 4u ) {
_measure ();
}
}
}