SDL
2.0
|
Go to the source code of this file.
void _validateHasIntersectionResults | ( | SDL_bool | intersection, |
SDL_bool | expectedIntersection, | ||
SDL_Rect * | rectA, | ||
SDL_Rect * | rectB, | ||
SDL_Rect * | refRectA, | ||
SDL_Rect * | refRectB | ||
) |
Definition at line 308 of file testautomation_rect.c.
References SDL_Rect::h, SDL_TRUE, SDLTest_AssertCheck(), SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
Referenced by _validateIntersectRectResults(), rect_testHasIntersectionEmpty(), rect_testHasIntersectionInside(), rect_testHasIntersectionOutside(), rect_testHasIntersectionPartial(), and rect_testHasIntersectionPoint().
void _validateIntersectRectAndLineResults | ( | SDL_bool | intersection, |
SDL_bool | expectedIntersection, | ||
SDL_Rect * | rect, | ||
SDL_Rect * | refRect, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | x1Ref, | ||
int | y1Ref, | ||
int | x2Ref, | ||
int | y2Ref | ||
) |
Original code: automated SDL rect test written by Edgar Simo "bobbens" New/updated tests: aschiffler at ferzkopp dot net
Definition at line 18 of file testautomation_rect.c.
References SDL_Rect::h, SDL_TRUE, SDLTest_AssertCheck(), SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
Referenced by rect_testIntersectRectAndLine(), rect_testIntersectRectAndLineEmpty(), rect_testIntersectRectAndLineInside(), and rect_testIntersectRectAndLineOutside().
void _validateIntersectRectResults | ( | SDL_bool | intersection, |
SDL_bool | expectedIntersection, | ||
SDL_Rect * | rectA, | ||
SDL_Rect * | rectB, | ||
SDL_Rect * | refRectA, | ||
SDL_Rect * | refRectB, | ||
SDL_Rect * | result, | ||
SDL_Rect * | expectedResult | ||
) |
Definition at line 331 of file testautomation_rect.c.
References _validateHasIntersectionResults(), SDL_Rect::h, SDLTest_AssertCheck(), SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
Referenced by rect_testIntersectRectEmpty(), rect_testIntersectRectInside(), rect_testIntersectRectOutside(), rect_testIntersectRectPartial(), and rect_testIntersectRectPoint().
void _validateRectEmptyResults | ( | SDL_bool | empty, |
SDL_bool | expectedEmpty, | ||
SDL_Rect * | rect, | ||
SDL_Rect * | refRect | ||
) |
Definition at line 373 of file testautomation_rect.c.
References SDL_Rect::h, SDL_TRUE, SDLTest_AssertCheck(), SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
Referenced by rect_testRectEmpty().
void _validateRectEqualsResults | ( | SDL_bool | equals, |
SDL_bool | expectedEquals, | ||
SDL_Rect * | rectA, | ||
SDL_Rect * | rectB, | ||
SDL_Rect * | refRectA, | ||
SDL_Rect * | refRectB | ||
) |
Definition at line 391 of file testautomation_rect.c.
References SDL_Rect::h, SDL_TRUE, SDLTest_AssertCheck(), SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
Referenced by rect_testRectEquals().
void _validateUnionRectResults | ( | SDL_Rect * | rectA, |
SDL_Rect * | rectB, | ||
SDL_Rect * | refRectA, | ||
SDL_Rect * | refRectB, | ||
SDL_Rect * | result, | ||
SDL_Rect * | expectedResult | ||
) |
Definition at line 350 of file testautomation_rect.c.
References SDL_Rect::h, SDLTest_AssertCheck(), SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
Referenced by rect_testUnionRectEmpty(), rect_testUnionRectInside(), and rect_testUnionRectOutside().
int rect_testEnclosePoints | ( | void * | arg | ) |
Definition at line 959 of file testautomation_rect.c.
References SDL_Rect::h, i, NULL, SDL_EnclosePoints, SDL_TRUE, SDLTest_AssertCheck(), SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Point::x, SDL_Rect::x, SDL_Point::y, and SDL_Rect::y.
int rect_testEnclosePointsParam | ( | void * | arg | ) |
Definition at line 1204 of file testautomation_rect.c.
References NULL, SDL_EnclosePoints, SDL_FALSE, SDLTest_AssertCheck(), SDLTest_RandomIntegerInRange(), and TEST_COMPLETED.
int rect_testEnclosePointsRepeatedInput | ( | void * | arg | ) |
Definition at line 1029 of file testautomation_rect.c.
References SDL_Rect::h, i, NULL, SDL_EnclosePoints, SDL_TRUE, SDLTest_AssertCheck(), SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Point::x, SDL_Rect::x, SDL_Point::y, and SDL_Rect::y.
int rect_testEnclosePointsWithClipping | ( | void * | arg | ) |
Definition at line 1105 of file testautomation_rect.c.
References SDL_Rect::h, i, NULL, SDL_EnclosePoints, SDL_FALSE, SDL_TRUE, SDLTest_AssertCheck(), SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Point::x, SDL_Rect::x, SDL_Point::y, and SDL_Rect::y.
int rect_testHasIntersectionEmpty | ( | void * | arg | ) |
Definition at line 878 of file testautomation_rect.c.
References _validateHasIntersectionResults(), SDL_Rect::h, SDL_FALSE, SDL_HasIntersection, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testHasIntersectionInside | ( | void * | arg | ) |
Definition at line 711 of file testautomation_rect.c.
References _validateHasIntersectionResults(), SDL_Rect::h, SDL_HasIntersection, SDL_TRUE, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testHasIntersectionOutside | ( | void * | arg | ) |
Definition at line 738 of file testautomation_rect.c.
References _validateHasIntersectionResults(), SDL_Rect::h, SDL_FALSE, SDL_HasIntersection, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testHasIntersectionParam | ( | void * | arg | ) |
Definition at line 936 of file testautomation_rect.c.
References NULL, SDL_FALSE, SDL_HasIntersection, SDLTest_AssertCheck(), and TEST_COMPLETED.
int rect_testHasIntersectionPartial | ( | void * | arg | ) |
Definition at line 765 of file testautomation_rect.c.
References _validateHasIntersectionResults(), SDL_Rect::h, SDL_HasIntersection, SDL_TRUE, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testHasIntersectionPoint | ( | void * | arg | ) |
Definition at line 832 of file testautomation_rect.c.
References _validateHasIntersectionResults(), SDL_FALSE, SDL_HasIntersection, SDL_TRUE, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::x, and SDL_Rect::y.
int rect_testIntersectRectAndLine | ( | void * | arg | ) |
Definition at line 49 of file testautomation_rect.c.
References _validateIntersectRectAndLineResults(), SDL_Rect::h, rect, SDL_IntersectRectAndLine, SDL_TRUE, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, and SDL_Rect::w.
int rect_testIntersectRectAndLineEmpty | ( | void * | arg | ) |
Definition at line 242 of file testautomation_rect.c.
References _validateIntersectRectAndLineResults(), SDL_Rect::h, rect, SDL_FALSE, SDL_IntersectRectAndLine, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testIntersectRectAndLineInside | ( | void * | arg | ) |
Definition at line 120 of file testautomation_rect.c.
References _validateIntersectRectAndLineResults(), SDL_Rect::h, rect, SDL_IntersectRectAndLine, SDL_TRUE, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testIntersectRectAndLineOutside | ( | void * | arg | ) |
Definition at line 187 of file testautomation_rect.c.
References _validateIntersectRectAndLineResults(), SDL_Rect::h, rect, SDL_FALSE, SDL_IntersectRectAndLine, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, and SDL_Rect::w.
int rect_testIntersectRectAndLineParam | ( | void * | arg | ) |
Definition at line 277 of file testautomation_rect.c.
References SDL_Rect::h, NULL, rect, SDL_FALSE, SDL_IntersectRectAndLine, SDL_TRUE, SDLTest_AssertCheck(), TEST_COMPLETED, and SDL_Rect::w.
int rect_testIntersectRectEmpty | ( | void * | arg | ) |
Definition at line 609 of file testautomation_rect.c.
References _validateIntersectRectResults(), SDL_Rect::h, NULL, SDL_FALSE, SDL_IntersectRect, SDL_RectEmpty(), SDL_TRUE, SDLTest_AssertCheck(), SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testIntersectRectInside | ( | void * | arg | ) |
Definition at line 417 of file testautomation_rect.c.
References _validateIntersectRectResults(), SDL_Rect::h, SDL_IntersectRect, SDL_TRUE, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testIntersectRectOutside | ( | void * | arg | ) |
Definition at line 445 of file testautomation_rect.c.
References _validateIntersectRectResults(), SDL_Rect::h, NULL, SDL_FALSE, SDL_IntersectRect, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testIntersectRectParam | ( | void * | arg | ) |
Definition at line 681 of file testautomation_rect.c.
References NULL, SDL_FALSE, SDL_IntersectRect, SDLTest_AssertCheck(), and TEST_COMPLETED.
int rect_testIntersectRectPartial | ( | void * | arg | ) |
Definition at line 473 of file testautomation_rect.c.
References _validateIntersectRectResults(), SDL_Rect::h, SDL_IntersectRect, SDL_TRUE, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testIntersectRectPoint | ( | void * | arg | ) |
Definition at line 562 of file testautomation_rect.c.
References _validateIntersectRectResults(), NULL, SDL_FALSE, SDL_IntersectRect, SDL_TRUE, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::x, and SDL_Rect::y.
int rect_testRectEmpty | ( | void * | arg | ) |
Definition at line 1460 of file testautomation_rect.c.
References _validateRectEmptyResults(), SDL_Rect::h, rect, SDL_FALSE, SDL_RectEmpty(), SDL_TRUE, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testRectEmptyParam | ( | void * | arg | ) |
Definition at line 1503 of file testautomation_rect.c.
References NULL, SDL_RectEmpty(), SDL_TRUE, SDLTest_AssertCheck(), and TEST_COMPLETED.
int rect_testRectEquals | ( | void * | arg | ) |
Definition at line 1520 of file testautomation_rect.c.
References _validateRectEqualsResults(), SDL_Rect::h, SDL_RectEquals(), SDL_TRUE, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testRectEqualsParam | ( | void * | arg | ) |
Definition at line 1550 of file testautomation_rect.c.
References SDL_Rect::h, NULL, SDL_FALSE, SDL_RectEquals(), SDLTest_AssertCheck(), SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testUnionRectEmpty | ( | void * | arg | ) |
Definition at line 1303 of file testautomation_rect.c.
References _validateUnionRectResults(), SDL_Rect::h, SDL_UnionRect, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testUnionRectInside | ( | void * | arg | ) |
Definition at line 1368 of file testautomation_rect.c.
References _validateUnionRectResults(), SDL_Rect::h, SDL_UnionRect, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testUnionRectOutside | ( | void * | arg | ) |
Definition at line 1232 of file testautomation_rect.c.
References _validateUnionRectResults(), SDL_Rect::h, SDL_UnionRect, SDLTest_RandomIntegerInRange(), TEST_COMPLETED, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int rect_testUnionRectParam | ( | void * | arg | ) |
Definition at line 1432 of file testautomation_rect.c.
References NULL, SDL_UnionRect, SDLTest_AssertPass(), and TEST_COMPLETED.
|
static |
Definition at line 1582 of file testautomation_rect.c.
|
static |
Definition at line 1610 of file testautomation_rect.c.
|
static |
Definition at line 1613 of file testautomation_rect.c.
|
static |
Definition at line 1617 of file testautomation_rect.c.
|
static |
Definition at line 1620 of file testautomation_rect.c.
|
static |
Definition at line 1623 of file testautomation_rect.c.
|
static |
Definition at line 1626 of file testautomation_rect.c.
|
static |
Definition at line 1629 of file testautomation_rect.c.
|
static |
Definition at line 1632 of file testautomation_rect.c.
|
static |
Definition at line 1636 of file testautomation_rect.c.
|
static |
Definition at line 1639 of file testautomation_rect.c.
|
static |
Definition at line 1585 of file testautomation_rect.c.
|
static |
Definition at line 1642 of file testautomation_rect.c.
|
static |
Definition at line 1645 of file testautomation_rect.c.
|
static |
Definition at line 1649 of file testautomation_rect.c.
|
static |
Definition at line 1652 of file testautomation_rect.c.
|
static |
Definition at line 1655 of file testautomation_rect.c.
|
static |
Definition at line 1658 of file testautomation_rect.c.
|
static |
Definition at line 1662 of file testautomation_rect.c.
|
static |
Definition at line 1665 of file testautomation_rect.c.
|
static |
Definition at line 1670 of file testautomation_rect.c.
|
static |
Definition at line 1673 of file testautomation_rect.c.
|
static |
Definition at line 1588 of file testautomation_rect.c.
|
static |
Definition at line 1591 of file testautomation_rect.c.
|
static |
Definition at line 1594 of file testautomation_rect.c.
|
static |
Definition at line 1598 of file testautomation_rect.c.
|
static |
Definition at line 1601 of file testautomation_rect.c.
|
static |
Definition at line 1604 of file testautomation_rect.c.
|
static |
Definition at line 1607 of file testautomation_rect.c.
|
static |
Definition at line 1683 of file testautomation_rect.c.
SDLTest_TestSuiteReference rectTestSuite |
Definition at line 1691 of file testautomation_rect.c.