1 parent
e29c0661cc
commit
d0bbfdbfb8
179 files changed
+1260
-1101
No files matched your search
+14
-14
@@ -651,7 +651,7 @@ int rect_testIntersectRectEmpty(void *arg)
|
||||
rectB = refRectB;
|
||||
intersection = SDL_IntersectRect(&rectA, &rectB, &result);
|
||||
_validateIntersectRectResults(intersection, SDL_FALSE, &rectA, &rectB, &refRectA, &refRectB, (SDL_Rect *)NULL, (SDL_Rect *)NULL);
|
||||
empty = (SDL_bool)SDL_RectEmpty(&result);
|
||||
empty = SDL_RectEmpty(&result);
|
||||
SDLTest_AssertCheck(empty == SDL_TRUE, "Validate result is empty Rect; got: %s", (empty == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
|
||||
|
||||
/* Rect B empty */
|
||||
@@ -668,7 +668,7 @@ int rect_testIntersectRectEmpty(void *arg)
|
||||
rectB = refRectB;
|
||||
intersection = SDL_IntersectRect(&rectA, &rectB, &result);
|
||||
_validateIntersectRectResults(intersection, SDL_FALSE, &rectA, &rectB, &refRectA, &refRectB, (SDL_Rect *)NULL, (SDL_Rect *)NULL);
|
||||
empty = (SDL_bool)SDL_RectEmpty(&result);
|
||||
empty = SDL_RectEmpty(&result);
|
||||
SDLTest_AssertCheck(empty == SDL_TRUE, "Validate result is empty Rect; got: %s", (empty == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
|
||||
|
||||
/* Rect A and B empty */
|
||||
@@ -687,7 +687,7 @@ int rect_testIntersectRectEmpty(void *arg)
|
||||
rectB = refRectB;
|
||||
intersection = SDL_IntersectRect(&rectA, &rectB, &result);
|
||||
_validateIntersectRectResults(intersection, SDL_FALSE, &rectA, &rectB, &refRectA, &refRectB, (SDL_Rect *)NULL, (SDL_Rect *)NULL);
|
||||
empty = (SDL_bool)SDL_RectEmpty(&result);
|
||||
empty = SDL_RectEmpty(&result);
|
||||
SDLTest_AssertCheck(empty == SDL_TRUE, "Validate result is empty Rect; got: %s", (empty == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
|
||||
|
||||
return TEST_COMPLETED;
|
||||
@@ -1533,7 +1533,7 @@ int rect_testRectEmpty(void *arg)
|
||||
refRect.h = SDLTest_RandomIntegerInRange(256, 1024);
|
||||
expectedResult = SDL_FALSE;
|
||||
rect = refRect;
|
||||
result = (SDL_bool)SDL_RectEmpty((const SDL_Rect *)&rect);
|
||||
result = SDL_RectEmpty(&rect);
|
||||
_validateRectEmptyResults(result, expectedResult, &rect, &refRect);
|
||||
|
||||
/* Empty case */
|
||||
@@ -1546,7 +1546,7 @@ int rect_testRectEmpty(void *arg)
|
||||
refRect.h = h;
|
||||
expectedResult = SDL_TRUE;
|
||||
rect = refRect;
|
||||
result = (SDL_bool)SDL_RectEmpty((const SDL_Rect *)&rect);
|
||||
result = SDL_RectEmpty(&rect);
|
||||
_validateRectEmptyResults(result, expectedResult, &rect, &refRect);
|
||||
}
|
||||
}
|
||||
@@ -1566,7 +1566,7 @@ int rect_testRectEmptyParam(void *arg)
|
||||
SDL_bool result;
|
||||
|
||||
/* invalid parameter combinations */
|
||||
result = (SDL_bool)SDL_RectEmpty((const SDL_Rect *)NULL);
|
||||
result = SDL_RectEmpty(NULL);
|
||||
SDLTest_AssertCheck(result == SDL_TRUE, "Check that function returns TRUE when 1st parameter is NULL");
|
||||
|
||||
return TEST_COMPLETED;
|
||||
@@ -1596,7 +1596,7 @@ int rect_testRectEquals(void *arg)
|
||||
expectedResult = SDL_TRUE;
|
||||
rectA = refRectA;
|
||||
rectB = refRectB;
|
||||
result = (SDL_bool)SDL_RectEquals((const SDL_Rect *)&rectA, (const SDL_Rect *)&rectB);
|
||||
result = SDL_RectEquals(&rectA, &rectB);
|
||||
_validateRectEqualsResults(result, expectedResult, &rectA, &rectB, &refRectA, &refRectB);
|
||||
|
||||
return TEST_COMPLETED;
|
||||
@@ -1625,11 +1625,11 @@ int rect_testRectEqualsParam(void *arg)
|
||||
rectB.h = SDLTest_RandomIntegerInRange(1, 1024);
|
||||
|
||||
/* invalid parameter combinations */
|
||||
result = (SDL_bool)SDL_RectEquals((const SDL_Rect *)NULL, (const SDL_Rect *)&rectB);
|
||||
result = SDL_RectEquals(NULL, &rectB);
|
||||
SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 1st parameter is NULL");
|
||||
result = (SDL_bool)SDL_RectEquals((const SDL_Rect *)&rectA, (const SDL_Rect *)NULL);
|
||||
result = SDL_RectEquals(&rectA, NULL);
|
||||
SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 2nd parameter is NULL");
|
||||
result = (SDL_bool)SDL_RectEquals((const SDL_Rect *)NULL, (const SDL_Rect *)NULL);
|
||||
result = SDL_RectEquals(NULL, NULL);
|
||||
SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 1st and 2nd parameter are NULL");
|
||||
|
||||
return TEST_COMPLETED;
|
||||
@@ -1659,7 +1659,7 @@ int rect_testFRectEquals(void *arg)
|
||||
expectedResult = SDL_TRUE;
|
||||
rectA = refRectA;
|
||||
rectB = refRectB;
|
||||
result = (SDL_bool)SDL_FRectEquals((const SDL_FRect *)&rectA, (const SDL_FRect *)&rectB);
|
||||
result = SDL_FRectEquals(&rectA, &rectB);
|
||||
_validateFRectEqualsResults(result, expectedResult, &rectA, &rectB, &refRectA, &refRectB);
|
||||
|
||||
return TEST_COMPLETED;
|
||||
@@ -1688,11 +1688,11 @@ int rect_testFRectEqualsParam(void *arg)
|
||||
rectB.h = SDLTest_RandomFloat();
|
||||
|
||||
/* invalid parameter combinations */
|
||||
result = (SDL_bool)SDL_FRectEquals((const SDL_FRect *)NULL, (const SDL_FRect *)&rectB);
|
||||
result = SDL_FRectEquals(NULL, &rectB);
|
||||
SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 1st parameter is NULL");
|
||||
result = (SDL_bool)SDL_FRectEquals((const SDL_FRect *)&rectA, (const SDL_FRect *)NULL);
|
||||
result = SDL_FRectEquals(&rectA, NULL);
|
||||
SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 2nd parameter is NULL");
|
||||
result = (SDL_bool)SDL_FRectEquals((const SDL_FRect *)NULL, (const SDL_FRect *)NULL);
|
||||
result = SDL_FRectEquals(NULL, NULL);
|
||||
SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 1st and 2nd parameter are NULL");
|
||||
|
||||
return TEST_COMPLETED;
|
||||
|
||||
Reference in new issue
Block a user