From 455ab574d5f5f251365e12a97c0b088e6a35d6b0 Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Tue, 29 Mar 2011 13:50:29 -0400 Subject: [ 2/2] d3dx9/tests: Add tests for D3DXFloat32To16Array. Reply-To: wine-devel X-Our-ReplyTo: Full To: wine-patches Added tests for rounding of denormalized number for D3DXFloat32To16Array. --- dlls/d3dx9_36/tests/math.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c index 5dbc863..dd214c2 100644 --- a/dlls/d3dx9_36/tests/math.c +++ b/dlls/d3dx9_36/tests/math.c @@ -2254,6 +2254,11 @@ static void test_D3DXFloat_Array(void) { -NAN, 0xffff, 0xffff, -131008.0f, -131008.0f }, { 0.0f, 0x0, 0x0, 0.0f, 0.0f }, { -0.0f, 0x8000, 0x8000, 0.0f, 0.0f }, + { 2.9809595e-08f, 0x0, 0x0, 0.0f, 0.0f }, + { -2.9809595e-08f, 0x8000, 0x8000, -0.0f, -0.0f }, + { 2.9809598e-08f, 0x1, 0x1, 5.96046e-08f, 5.96046e-08f }, + { -2.9809598e-08f, 0x8001, 0x8001, -5.96046e-08f, -5.96046e-08f }, + { 8.9406967e-08f, 0x2, 0x2, 1.19209e-07f, 1.19209e-07f } }; /* exception on NULL out or in parameter */ -- 1.7.4.1