mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
oleaut32/tests: Test relative error, not absolute.
This commit is contained in:
parent
1b2b2bd78e
commit
48e1faff1e
@ -91,7 +91,7 @@ int val_empty, val_null;
|
||||
#define EXPECT_GT EXPECTRES(VARCMP_GT, VARCMP_GT)
|
||||
#define EXPECT_EQ EXPECTRES(VARCMP_EQ, VARCMP_EQ)
|
||||
#define EXPECT_DBL(x) \
|
||||
ok(hres == S_OK && fabs(out-(x))<1e-14, "expected " #x ", got %16.16g; hres=0x%08lx\n", out, hres)
|
||||
ok(hres == S_OK && fabs(out-(x))<=1e-14*(x), "expected %16.16g, got %16.16g; hres=0x%08lx\n", (x), out, hres)
|
||||
|
||||
#define CONVERT(func, val) in = val; hres = p##func(in, &out)
|
||||
#define CONVERTRANGE(func,start,end) for (i = start; i < end; i+=1) { CONVERT(func, i); EXPECT(i); };
|
||||
|
Loading…
Reference in New Issue
Block a user