mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-24 10:39:51 +00:00
Test: Fix Exp base case for Win32.
Add epsilon to the check.
This commit is contained in:
parent
8e782876bb
commit
73d8d02629
@ -1063,9 +1063,10 @@ static int
|
||||
exp_baseCase(void *args)
|
||||
{
|
||||
const double result = SDL_exp(1.0);
|
||||
SDLTest_AssertCheck(EULER == result,
|
||||
"Exp(%f), expected %f, got %f",
|
||||
1.0, EULER, result);
|
||||
SDLTest_AssertCheck(result >= EULER - EPSILON &&
|
||||
result <= EULER + EPSILON,
|
||||
"Exp(%f), expected [%f,%f], got %f",
|
||||
1.0, EULER - EPSILON, EULER + EPSILON, result);
|
||||
return TEST_COMPLETED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user