all tests now passing, print table entries only in case of failures
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12726 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
42b25a64ad
commit
f789e6b332
|
@ -62,12 +62,12 @@ main(int argc, char **argv)
|
||||||
double f = (double)i/7.0;
|
double f = (double)i/7.0;
|
||||||
double x = sin(f);
|
double x = sin(f);
|
||||||
double y = be_sin(f);
|
double y = be_sin(f);
|
||||||
fprintf(stdout, "%0.3f\t%0.10f\t%0.10f", f, x, y);
|
|
||||||
if (fabs(x - y) > 0.000001) {
|
if (fabs(x - y) > 0.000001) {
|
||||||
|
fprintf(stdout, "%0.3f\t%0.10f\t%0.10f", f, x, y);
|
||||||
fprintf(stdout, " **");
|
fprintf(stdout, " **");
|
||||||
|
fprintf(stdout, "\n");
|
||||||
result = B_ERROR;
|
result = B_ERROR;
|
||||||
}
|
}
|
||||||
fprintf(stdout, "\n");
|
|
||||||
}
|
}
|
||||||
fprintf(stdout, "\n");
|
fprintf(stdout, "\n");
|
||||||
|
|
||||||
|
@ -77,12 +77,12 @@ main(int argc, char **argv)
|
||||||
double f = (double)i/7.0;
|
double f = (double)i/7.0;
|
||||||
double x = cos(f);
|
double x = cos(f);
|
||||||
double y = be_cos(f);
|
double y = be_cos(f);
|
||||||
fprintf(stdout, "%0.3f\t%0.10f\t%0.10f", f, x, y);
|
|
||||||
if (fabs(x - y) > 0.000001) {
|
if (fabs(x - y) > 0.000001) {
|
||||||
|
fprintf(stdout, "%0.3f\t%0.10f\t%0.10f", f, x, y);
|
||||||
fprintf(stdout, " **");
|
fprintf(stdout, " **");
|
||||||
|
fprintf(stdout, "\n");
|
||||||
result = B_ERROR;
|
result = B_ERROR;
|
||||||
}
|
}
|
||||||
fprintf(stdout, "\n");
|
|
||||||
}
|
}
|
||||||
fprintf(stdout, "\n");
|
fprintf(stdout, "\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue