[PATCH 04/10] d3dx9/tests: Use compare_float() in test_D3DXSHEvalSphericalLight().
Matteo Bruni
matteo.mystral at gmail.com
Thu May 4 17:15:04 CDT 2017
2017-05-04 12:05 GMT+02:00 Henri Verbeet <hverbeet at codeweavers.com>:
> - ok(relative_error(expected, test[l].red_received[j]) < 0.0005f,
> - "Red: case %u, order %u: expected[%u] = %f, received %f\n", l, order, j, expected, test[l].red_received[j]);
> + equal = compare_float(expected, test[l].red_received[j], 512);
> + ok(equal || (fabs(expected) < 1.0e-6f && fabs(test[l].red_received[j]) < 1.0e-6f),
> + "Red: case %u, order %u: expected[%u] = %.8e, received %.8e.\n",
> + l, order, j, expected, test[l].red_received[j]);
I guess those are mostly to make our implementation pass the test. Did
you have a look at it by any chance?
More information about the wine-devel
mailing list