X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Ftests%2Frealops.cpp;h=b9ce4414c0213842d67b9a849bdde3107a3731e4;hp=4ac54ff23acc4a03a094ea2950cad6b62b009766;hb=2efd51d686e0dd911f0220ab2d595c0b3b0e18be;hpb=b02dcbab39b8c28b9baa41436842ca9fe4ae7ffd diff --git a/src/tests/realops.cpp b/src/tests/realops.cpp index 4ac54ff..b9ce441 100644 --- a/src/tests/realops.cpp +++ b/src/tests/realops.cpp @@ -10,7 +10,7 @@ static double g_totalerror = 0; bool NotEqual(double a, double b, double threshold=1e-1) { - double error = (fabs(a-b) > threshold); + double error = fabs(a-b); g_totalerror += error; return (error > threshold); } @@ -22,7 +22,7 @@ int main(int argc, char ** argv) unsigned failures = 0; for (unsigned i = 0; i < TEST_CASES; ++i) { - Debug("Test %u of %u", i, TEST_CASES); + //Debug("Test %u of %u", i, TEST_CASES); double da = (double)(rand() + 1) / (double)(rand() + 1); double db = (double)(rand() + 1) / (double)(rand() + 1);