Commit 8034a3c6 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3dx9/tests: Use compare_float() in D3DXFresnelTest().

parent 1817f63a
......@@ -302,11 +302,12 @@ static void D3DXColorTest(void)
static void D3DXFresnelTest(void)
{
FLOAT expected, got;
float fresnel;
BOOL equal;
expected = 0.089187;
got = D3DXFresnelTerm(0.5f,1.5);
ok(relative_error(got, expected) < admitted_error, "Expected: %f, Got: %f\n", expected, got);
fresnel = D3DXFresnelTerm(0.5f, 1.5f);
equal = compare_float(fresnel, 8.91867056e-02f, 1);
ok(equal, "Got unexpected Fresnel term %.8e.\n", fresnel);
}
static void D3DXMatrixTest(void)
......
Markdown is supported
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