Nozomi Kodama : d3dx9_36/tests: Relax an equality between floats.
Alexandre Julliard
julliard at winehq.org
Wed Oct 3 13:20:35 CDT 2012
Module: wine
Branch: master
Commit: 3d5c61cdcd0431f381b412a3bf8963f9bde88a8f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d5c61cdcd0431f381b412a3bf8963f9bde88a8f
Author: Nozomi Kodama <nozomi.kodama at yahoo.com>
Date: Tue Oct 2 14:13:11 2012 +0800
d3dx9_36/tests: Relax an equality between floats.
---
dlls/d3dx9_36/tests/math.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c
index 761b832..8ab0391 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -2418,7 +2418,7 @@ static void test_D3DXSHAdd(void)
ok(relative_error(in1[i] + in2[i], out[i]) < admitted_error,
"%u-%u: D3DXSHAdd() failed, got %f, expected %f\n", k, i, out[i], in1[i] + in2[i]);
}
- ok(out[count] == 0.0f, "%u-%u: D3DXSHAdd() failed, got %f, expected 0.0\n", k, k * k, out[count]);
+ ok(relative_error(out[count], 0.0f) < admitted_error, "%u-%u: D3DXSHAdd() failed, got %f, expected 0.0\n", k, k * k, out[count]);
}
}
More information about the wine-cvs
mailing list