Commit e1ebdaa8 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

corr

parent 5ffcc300
Pipeline #14248 failed with stage
in 9 minutes and 13 seconds
......@@ -31,13 +31,13 @@ static double relerr(double a, double b) {
void test_one(int* fail, double limit, double a, double b)
{
static int num = 0;
++num;
double re = relerr(a,b);
if (re==0)
return;
int ok = re<=limit;
printf(ok ? " " : "ERR");
printf(" test case %i: found=%g, expected=%g, relerr=%g\n", num, a, b, re);
++num;
if (!ok)
++(*fail);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment