test/testautomation_rect.c
changeset 7191 75360622e65f
parent 7074 0545811b3543
child 7663 53fe1b64eb2d
     1.1 --- a/test/testautomation_rect.c	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/test/testautomation_rect.c	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -21,7 +21,7 @@
     1.4      int x1, int y1, int x2, int y2,
     1.5      int x1Ref, int y1Ref, int x2Ref, int y2Ref)
     1.6  {
     1.7 -    SDLTest_AssertCheck(intersection == expectedIntersection, 
     1.8 +    SDLTest_AssertCheck(intersection == expectedIntersection,
     1.9          "Check for correct intersection result: expected %s, got %s intersecting rect (%d,%d,%d,%d) with line (%d,%d - %d,%d)",
    1.10          (expectedIntersection == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
    1.11          (intersection == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
    1.12 @@ -45,7 +45,7 @@
    1.13   * \sa
    1.14   * http://wiki.libsdl.org/moin.cgi/SDL_IntersectRectAndLine
    1.15   */
    1.16 -int 
    1.17 +int
    1.18  rect_testIntersectRectAndLine (void *arg)
    1.19  {
    1.20      SDL_Rect refRect = { 0, 0, 32, 32 };
    1.21 @@ -107,7 +107,7 @@
    1.22      intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
    1.23      _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 31, 0, 0, 31);
    1.24  
    1.25 -	return TEST_COMPLETED;
    1.26 +    return TEST_COMPLETED;
    1.27  }
    1.28  
    1.29  /*!
    1.30 @@ -116,7 +116,7 @@
    1.31   * \sa
    1.32   * http://wiki.libsdl.org/moin.cgi/SDL_IntersectRectAndLine
    1.33   */
    1.34 -int 
    1.35 +int
    1.36  rect_testIntersectRectAndLineInside (void *arg)
    1.37  {
    1.38      SDL_Rect refRect = { 0, 0, 32, 32 };
    1.39 @@ -174,7 +174,7 @@
    1.40      intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
    1.41      _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, xmin, ymax, xmax, ymin);
    1.42  
    1.43 -	return TEST_COMPLETED;
    1.44 +    return TEST_COMPLETED;
    1.45  }
    1.46  
    1.47  /*!
    1.48 @@ -183,7 +183,7 @@
    1.49   * \sa
    1.50   * http://wiki.libsdl.org/moin.cgi/SDL_IntersectRectAndLine
    1.51   */
    1.52 -int 
    1.53 +int
    1.54  rect_testIntersectRectAndLineOutside (void *arg)
    1.55  {
    1.56      SDL_Rect refRect = { 0, 0, 32, 32 };
    1.57 @@ -229,7 +229,7 @@
    1.58      intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
    1.59      _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, 0, yBottom, 31, yBottom);
    1.60  
    1.61 -	return TEST_COMPLETED;
    1.62 +    return TEST_COMPLETED;
    1.63  }
    1.64  
    1.65  /*!
    1.66 @@ -238,7 +238,7 @@
    1.67   * \sa
    1.68   * http://wiki.libsdl.org/moin.cgi/SDL_IntersectRectAndLine
    1.69   */
    1.70 -int 
    1.71 +int
    1.72  rect_testIntersectRectAndLineEmpty (void *arg)
    1.73  {
    1.74      SDL_Rect refRect;
    1.75 @@ -246,7 +246,7 @@
    1.76      int x1, y1, x1Ref, y1Ref;
    1.77      int x2, y2, x2Ref, y2Ref;
    1.78      SDL_bool intersected;
    1.79 -        
    1.80 +
    1.81      refRect.x = SDLTest_RandomIntegerInRange(1, 1024);
    1.82      refRect.y = SDLTest_RandomIntegerInRange(1, 1024);
    1.83      refRect.w = 0;
    1.84 @@ -264,7 +264,7 @@
    1.85      intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
    1.86      _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, x1Ref, y1Ref, x2Ref, y2Ref);
    1.87  
    1.88 -	return TEST_COMPLETED;
    1.89 +    return TEST_COMPLETED;
    1.90  }
    1.91  
    1.92  /*!
    1.93 @@ -273,7 +273,7 @@
    1.94   * \sa
    1.95   * http://wiki.libsdl.org/moin.cgi/SDL_IntersectRectAndLine
    1.96   */
    1.97 -int 
    1.98 +int
    1.99  rect_testIntersectRectAndLineParam (void *arg)
   1.100  {
   1.101      SDL_Rect rect = { 0, 0, 32, 32 };
   1.102 @@ -282,10 +282,10 @@
   1.103      int x2 = x1;
   1.104      int y2 = 2 * rect.h;
   1.105      SDL_bool intersected;
   1.106 -    
   1.107 +
   1.108      intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
   1.109      SDLTest_AssertCheck(intersected == SDL_TRUE, "Check that intersection result was SDL_TRUE");
   1.110 -    
   1.111 +
   1.112      intersected = SDL_IntersectRectAndLine((SDL_Rect *)NULL, &x1, &y1, &x2, &y2);
   1.113      SDLTest_AssertCheck(intersected == SDL_FALSE, "Check that function returns SDL_FALSE when 1st parameter is NULL");
   1.114      intersected = SDL_IntersectRectAndLine(&rect, (int *)NULL, &y1, &x2, &y2);
   1.115 @@ -299,21 +299,21 @@
   1.116      intersected = SDL_IntersectRectAndLine((SDL_Rect *)NULL, (int *)NULL, (int *)NULL, (int *)NULL, (int *)NULL);
   1.117      SDLTest_AssertCheck(intersected == SDL_FALSE, "Check that function returns SDL_FALSE when all parameters are NULL");
   1.118  
   1.119 -	return TEST_COMPLETED;
   1.120 +    return TEST_COMPLETED;
   1.121  }
   1.122  
   1.123  /*!
   1.124   * \brief Private helper to check SDL_HasIntersection results
   1.125   */
   1.126  void _validateHasIntersectionResults(
   1.127 -    SDL_bool intersection, SDL_bool expectedIntersection, 
   1.128 +    SDL_bool intersection, SDL_bool expectedIntersection,
   1.129      SDL_Rect *rectA, SDL_Rect *rectB, SDL_Rect *refRectA, SDL_Rect *refRectB)
   1.130  {
   1.131 -    SDLTest_AssertCheck(intersection == expectedIntersection, 
   1.132 +    SDLTest_AssertCheck(intersection == expectedIntersection,
   1.133          "Check intersection result: expected %s, got %s intersecting A (%d,%d,%d,%d) with B (%d,%d,%d,%d)",
   1.134          (expectedIntersection == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.135          (intersection == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.136 -        rectA->x, rectA->y, rectA->w, rectA->h, 
   1.137 +        rectA->x, rectA->y, rectA->w, rectA->h,
   1.138          rectB->x, rectB->y, rectB->w, rectB->h);
   1.139      SDLTest_AssertCheck(rectA->x == refRectA->x && rectA->y == refRectA->y && rectA->w == refRectA->w && rectA->h == refRectA->h,
   1.140          "Check that source rectangle A was not modified: got (%d,%d,%d,%d) expected (%d,%d,%d,%d)",
   1.141 @@ -329,15 +329,15 @@
   1.142   * \brief Private helper to check SDL_IntersectRect results
   1.143   */
   1.144  void _validateIntersectRectResults(
   1.145 -    SDL_bool intersection, SDL_bool expectedIntersection, 
   1.146 -    SDL_Rect *rectA, SDL_Rect *rectB, SDL_Rect *refRectA, SDL_Rect *refRectB, 
   1.147 +    SDL_bool intersection, SDL_bool expectedIntersection,
   1.148 +    SDL_Rect *rectA, SDL_Rect *rectB, SDL_Rect *refRectA, SDL_Rect *refRectB,
   1.149      SDL_Rect *result, SDL_Rect *expectedResult)
   1.150  {
   1.151      _validateHasIntersectionResults(intersection, expectedIntersection, rectA, rectB, refRectA, refRectB);
   1.152      if (result && expectedResult) {
   1.153          SDLTest_AssertCheck(result->x == expectedResult->x && result->y == expectedResult->y && result->w == expectedResult->w && result->h == expectedResult->h,
   1.154              "Check that intersection of rectangles A (%d,%d,%d,%d) and B (%d,%d,%d,%d) was correctly calculated, got (%d,%d,%d,%d) expected (%d,%d,%d,%d)",
   1.155 -            rectA->x, rectA->y, rectA->w, rectA->h, 
   1.156 +            rectA->x, rectA->y, rectA->w, rectA->h,
   1.157              rectB->x, rectB->y, rectB->w, rectB->h,
   1.158              result->x, result->y, result->w, result->h,
   1.159              expectedResult->x, expectedResult->y, expectedResult->w, expectedResult->h);
   1.160 @@ -348,7 +348,7 @@
   1.161   * \brief Private helper to check SDL_UnionRect results
   1.162   */
   1.163  void _validateUnionRectResults(
   1.164 -    SDL_Rect *rectA, SDL_Rect *rectB, SDL_Rect *refRectA, SDL_Rect *refRectB, 
   1.165 +    SDL_Rect *rectA, SDL_Rect *rectB, SDL_Rect *refRectA, SDL_Rect *refRectB,
   1.166      SDL_Rect *result, SDL_Rect *expectedResult)
   1.167  {
   1.168      SDLTest_AssertCheck(rectA->x == refRectA->x && rectA->y == refRectA->y && rectA->w == refRectA->w && rectA->h == refRectA->h,
   1.169 @@ -361,7 +361,7 @@
   1.170          refRectB->x, refRectB->y, refRectB->w, refRectB->h);
   1.171      SDLTest_AssertCheck(result->x == expectedResult->x && result->y == expectedResult->y && result->w == expectedResult->w && result->h == expectedResult->h,
   1.172          "Check that union of rectangles A (%d,%d,%d,%d) and B (%d,%d,%d,%d) was correctly calculated, got (%d,%d,%d,%d) expected (%d,%d,%d,%d)",
   1.173 -        rectA->x, rectA->y, rectA->w, rectA->h, 
   1.174 +        rectA->x, rectA->y, rectA->w, rectA->h,
   1.175          rectB->x, rectB->y, rectB->w, rectB->h,
   1.176          result->x, result->y, result->w, result->h,
   1.177          expectedResult->x, expectedResult->y, expectedResult->w, expectedResult->h);
   1.178 @@ -371,10 +371,10 @@
   1.179   * \brief Private helper to check SDL_RectEmpty results
   1.180   */
   1.181  void _validateRectEmptyResults(
   1.182 -    SDL_bool empty, SDL_bool expectedEmpty, 
   1.183 +    SDL_bool empty, SDL_bool expectedEmpty,
   1.184      SDL_Rect *rect, SDL_Rect *refRect)
   1.185  {
   1.186 -    SDLTest_AssertCheck(empty == expectedEmpty, 
   1.187 +    SDLTest_AssertCheck(empty == expectedEmpty,
   1.188          "Check for correct empty result: expected %s, got %s testing (%d,%d,%d,%d)",
   1.189          (expectedEmpty == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.190          (empty == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.191 @@ -389,10 +389,10 @@
   1.192   * \brief Private helper to check SDL_RectEquals results
   1.193   */
   1.194  void _validateRectEqualsResults(
   1.195 -    SDL_bool equals, SDL_bool expectedEquals, 
   1.196 +    SDL_bool equals, SDL_bool expectedEquals,
   1.197      SDL_Rect *rectA, SDL_Rect *rectB, SDL_Rect *refRectA, SDL_Rect *refRectB)
   1.198  {
   1.199 -    SDLTest_AssertCheck(equals == expectedEquals, 
   1.200 +    SDLTest_AssertCheck(equals == expectedEquals,
   1.201          "Check for correct equals result: expected %s, got %s testing (%d,%d,%d,%d) and (%d,%d,%d,%d)",
   1.202          (expectedEquals == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.203          (equals == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.204 @@ -433,7 +433,7 @@
   1.205      intersection = SDL_IntersectRect(&rectA, &rectB, &result);
   1.206      _validateIntersectRectResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB, &result, &refRectB);
   1.207  
   1.208 -	return TEST_COMPLETED;
   1.209 +    return TEST_COMPLETED;
   1.210  }
   1.211  
   1.212  /*!
   1.213 @@ -459,9 +459,9 @@
   1.214      rectA = refRectA;
   1.215      rectB = refRectB;
   1.216      intersection = SDL_IntersectRect(&rectA, &rectB, &result);
   1.217 -    _validateIntersectRectResults(intersection, SDL_FALSE, &rectA, &rectB, &refRectA, &refRectB, (SDL_Rect *)NULL, (SDL_Rect *)NULL);    
   1.218 +    _validateIntersectRectResults(intersection, SDL_FALSE, &rectA, &rectB, &refRectA, &refRectB, (SDL_Rect *)NULL, (SDL_Rect *)NULL);
   1.219  
   1.220 -	return TEST_COMPLETED;
   1.221 +    return TEST_COMPLETED;
   1.222  }
   1.223  
   1.224  /*!
   1.225 @@ -490,7 +490,7 @@
   1.226      expectedResult.x = refRectB.x;
   1.227      expectedResult.y = refRectB.y;
   1.228      expectedResult.w = refRectA.w - refRectB.x;
   1.229 -    expectedResult.h = refRectA.h - refRectB.y;    
   1.230 +    expectedResult.h = refRectA.h - refRectB.y;
   1.231      intersection = SDL_IntersectRect(&rectA, &rectB, &result);
   1.232      _validateIntersectRectResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   1.233  
   1.234 @@ -504,7 +504,7 @@
   1.235      expectedResult.x = refRectB.x;
   1.236      expectedResult.y = refRectB.y;
   1.237      expectedResult.w = 1;
   1.238 -    expectedResult.h = refRectB.h;    
   1.239 +    expectedResult.h = refRectB.h;
   1.240      intersection = SDL_IntersectRect(&rectA, &rectB, &result);
   1.241      _validateIntersectRectResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   1.242  
   1.243 @@ -518,7 +518,7 @@
   1.244      expectedResult.x = 0;
   1.245      expectedResult.y = refRectB.y;
   1.246      expectedResult.w = 1;
   1.247 -    expectedResult.h = refRectB.h;    
   1.248 +    expectedResult.h = refRectB.h;
   1.249      intersection = SDL_IntersectRect(&rectA, &rectB, &result);
   1.250      _validateIntersectRectResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   1.251  
   1.252 @@ -532,7 +532,7 @@
   1.253      expectedResult.x = refRectB.x;
   1.254      expectedResult.y = refRectB.y;
   1.255      expectedResult.w = refRectB.w;
   1.256 -    expectedResult.h = 1;    
   1.257 +    expectedResult.h = 1;
   1.258      intersection = SDL_IntersectRect(&rectA, &rectB, &result);
   1.259      _validateIntersectRectResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   1.260  
   1.261 @@ -546,11 +546,11 @@
   1.262      expectedResult.x = refRectB.x;
   1.263      expectedResult.y = 0;
   1.264      expectedResult.w = refRectB.w;
   1.265 -    expectedResult.h = 1;    
   1.266 +    expectedResult.h = 1;
   1.267      intersection = SDL_IntersectRect(&rectA, &rectB, &result);
   1.268      _validateIntersectRectResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   1.269  
   1.270 -	return TEST_COMPLETED;
   1.271 +    return TEST_COMPLETED;
   1.272  }
   1.273  
   1.274  /*!
   1.275 @@ -586,7 +586,7 @@
   1.276                  refRectA.x = SDLTest_RandomIntegerInRange(1, 100);
   1.277                  refRectA.y = SDLTest_RandomIntegerInRange(1, 100);
   1.278                  refRectB.x = refRectA.x;
   1.279 -                refRectB.y = refRectA.y;    
   1.280 +                refRectB.y = refRectA.y;
   1.281                  refRectB.x += offsetX;
   1.282                  refRectB.y += offsetY;
   1.283                  rectA = refRectA;
   1.284 @@ -597,7 +597,7 @@
   1.285          }
   1.286      }
   1.287  
   1.288 -	return TEST_COMPLETED;
   1.289 +    return TEST_COMPLETED;
   1.290  }
   1.291  
   1.292  /*!
   1.293 @@ -632,7 +632,7 @@
   1.294      _validateIntersectRectResults(intersection, SDL_FALSE, &rectA, &rectB, &refRectA, &refRectB, (SDL_Rect *)NULL, (SDL_Rect *)NULL);
   1.295      empty = (SDL_bool)SDL_RectEmpty(&result);
   1.296      SDLTest_AssertCheck(empty == SDL_TRUE, "Validate result is empty Rect; got: %s", (empty == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.297 -    
   1.298 +
   1.299      // Rect B empty
   1.300      result.w = SDLTest_RandomIntegerInRange(1, 100);
   1.301      result.h = SDLTest_RandomIntegerInRange(1, 100);
   1.302 @@ -687,19 +687,19 @@
   1.303  
   1.304      // invalid parameter combinations
   1.305      intersection = SDL_IntersectRect((SDL_Rect *)NULL, &rectB, &result);
   1.306 -    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 1st parameter is NULL"); 
   1.307 +    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 1st parameter is NULL");
   1.308      intersection = SDL_IntersectRect(&rectA, (SDL_Rect *)NULL, &result);
   1.309 -    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 2st parameter is NULL"); 
   1.310 +    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 2st parameter is NULL");
   1.311      intersection = SDL_IntersectRect(&rectA, &rectB, (SDL_Rect *)NULL);
   1.312 -    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 3st parameter is NULL"); 
   1.313 +    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 3st parameter is NULL");
   1.314      intersection = SDL_IntersectRect((SDL_Rect *)NULL, (SDL_Rect *)NULL, &result);
   1.315 -    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 1st and 2nd parameters are NULL"); 
   1.316 +    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 1st and 2nd parameters are NULL");
   1.317      intersection = SDL_IntersectRect((SDL_Rect *)NULL, &rectB, (SDL_Rect *)NULL);
   1.318 -    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 1st and 3rd parameters are NULL "); 
   1.319 +    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 1st and 3rd parameters are NULL ");
   1.320      intersection = SDL_IntersectRect((SDL_Rect *)NULL, (SDL_Rect *)NULL, (SDL_Rect *)NULL);
   1.321 -    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when all parameters are NULL");     
   1.322 +    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when all parameters are NULL");
   1.323  
   1.324 -	return TEST_COMPLETED;
   1.325 +    return TEST_COMPLETED;
   1.326  }
   1.327  
   1.328  /*!
   1.329 @@ -726,7 +726,7 @@
   1.330      intersection = SDL_HasIntersection(&rectA, &rectB);
   1.331      _validateHasIntersectionResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB);
   1.332  
   1.333 -	return TEST_COMPLETED;
   1.334 +    return TEST_COMPLETED;
   1.335  }
   1.336  
   1.337  /*!
   1.338 @@ -753,7 +753,7 @@
   1.339      intersection = SDL_HasIntersection(&rectA, &rectB);
   1.340      _validateHasIntersectionResults(intersection, SDL_FALSE, &rectA, &rectB, &refRectA, &refRectB);
   1.341  
   1.342 -	return TEST_COMPLETED;
   1.343 +    return TEST_COMPLETED;
   1.344  }
   1.345  
   1.346  /*!
   1.347 @@ -820,7 +820,7 @@
   1.348      intersection = SDL_HasIntersection(&rectA, &rectB);
   1.349      _validateHasIntersectionResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB);
   1.350  
   1.351 -	return TEST_COMPLETED;
   1.352 +    return TEST_COMPLETED;
   1.353  }
   1.354  
   1.355  /*!
   1.356 @@ -855,7 +855,7 @@
   1.357                  refRectA.x = SDLTest_RandomIntegerInRange(1, 100);
   1.358                  refRectA.y = SDLTest_RandomIntegerInRange(1, 100);
   1.359                  refRectB.x = refRectA.x;
   1.360 -                refRectB.y = refRectA.y;    
   1.361 +                refRectB.y = refRectA.y;
   1.362                  refRectB.x += offsetX;
   1.363                  refRectB.y += offsetY;
   1.364                  rectA = refRectA;
   1.365 @@ -866,7 +866,7 @@
   1.366          }
   1.367      }
   1.368  
   1.369 -	return TEST_COMPLETED;
   1.370 +    return TEST_COMPLETED;
   1.371  }
   1.372  
   1.373  /*!
   1.374 @@ -924,7 +924,7 @@
   1.375      intersection = SDL_HasIntersection(&rectA, &rectB);
   1.376      _validateHasIntersectionResults(intersection, SDL_FALSE, &rectA, &rectB, &refRectA, &refRectB);
   1.377  
   1.378 -	return TEST_COMPLETED;
   1.379 +    return TEST_COMPLETED;
   1.380  }
   1.381  
   1.382  /*!
   1.383 @@ -941,13 +941,13 @@
   1.384  
   1.385      // invalid parameter combinations
   1.386      intersection = SDL_HasIntersection((SDL_Rect *)NULL, &rectB);
   1.387 -    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 1st parameter is NULL"); 
   1.388 +    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 1st parameter is NULL");
   1.389      intersection = SDL_HasIntersection(&rectA, (SDL_Rect *)NULL);
   1.390 -    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 2st parameter is NULL"); 
   1.391 +    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 2st parameter is NULL");
   1.392      intersection = SDL_HasIntersection((SDL_Rect *)NULL, (SDL_Rect *)NULL);
   1.393 -    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when all parameters are NULL");     
   1.394 +    SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when all parameters are NULL");
   1.395  
   1.396 -	return TEST_COMPLETED;
   1.397 +    return TEST_COMPLETED;
   1.398  }
   1.399  
   1.400  /*!
   1.401 @@ -989,35 +989,35 @@
   1.402              if (newy > maxy) maxy = newy;
   1.403          }
   1.404      }
   1.405 -    
   1.406 +
   1.407      // Call function and validate - special case: no result requested
   1.408      anyEnclosedNoResult = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)NULL, (SDL_Rect *)NULL);
   1.409 -    SDLTest_AssertCheck(expectedEnclosed==anyEnclosedNoResult, 
   1.410 -        "Check expected return value %s, got %s", 
   1.411 -        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE", 
   1.412 -		(anyEnclosedNoResult==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.413 +    SDLTest_AssertCheck(expectedEnclosed==anyEnclosedNoResult,
   1.414 +        "Check expected return value %s, got %s",
   1.415 +        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.416 +        (anyEnclosedNoResult==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.417      for (i=0; i<numPoints; i++) {
   1.418          SDLTest_AssertCheck(refPoints[i].x==points[i].x && refPoints[i].y==points[i].y,
   1.419 -            "Check that source point %i was not modified: expected (%i,%i) actual (%i,%i)", 
   1.420 +            "Check that source point %i was not modified: expected (%i,%i) actual (%i,%i)",
   1.421              i, refPoints[i].x, refPoints[i].y, points[i].x, points[i].y);
   1.422      }
   1.423  
   1.424      // Call function and validate
   1.425      anyEnclosed = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)NULL, &result);
   1.426 -    SDLTest_AssertCheck(expectedEnclosed==anyEnclosed, 
   1.427 -        "Check return value %s, got %s", 
   1.428 -        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE", 
   1.429 -		(anyEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.430 +    SDLTest_AssertCheck(expectedEnclosed==anyEnclosed,
   1.431 +        "Check return value %s, got %s",
   1.432 +        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.433 +        (anyEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.434      for (i=0; i<numPoints; i++) {
   1.435          SDLTest_AssertCheck(refPoints[i].x==points[i].x && refPoints[i].y==points[i].y,
   1.436 -            "Check that source point %i was not modified: expected (%i,%i) actual (%i,%i)", 
   1.437 +            "Check that source point %i was not modified: expected (%i,%i) actual (%i,%i)",
   1.438              i, refPoints[i].x, refPoints[i].y, points[i].x, points[i].y);
   1.439      }
   1.440      SDLTest_AssertCheck(result.x==minx && result.y==miny && result.w==(maxx - minx + 1) && result.h==(maxy - miny + 1),
   1.441          "Resulting enclosing rectangle incorrect: expected (%i,%i - %i,%i), actual (%i,%i - %i,%i)",
   1.442          minx, miny, maxx, maxy, result.x, result.y, result.x + result.w - 1, result.y + result.h - 1);
   1.443  
   1.444 -	return TEST_COMPLETED;
   1.445 +    return TEST_COMPLETED;
   1.446  }
   1.447  
   1.448  /*!
   1.449 @@ -1068,32 +1068,32 @@
   1.450  
   1.451      // Call function and validate - special case: no result requested
   1.452      anyEnclosedNoResult = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)NULL, (SDL_Rect *)NULL);
   1.453 -    SDLTest_AssertCheck(expectedEnclosed==anyEnclosedNoResult, 
   1.454 -        "Check return value %s, got %s", 
   1.455 -        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE", 
   1.456 -		(anyEnclosedNoResult==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.457 +    SDLTest_AssertCheck(expectedEnclosed==anyEnclosedNoResult,
   1.458 +        "Check return value %s, got %s",
   1.459 +        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.460 +        (anyEnclosedNoResult==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.461      for (i=0; i<numPoints; i++) {
   1.462          SDLTest_AssertCheck(refPoints[i].x==points[i].x && refPoints[i].y==points[i].y,
   1.463 -            "Check that source point %i was not modified: expected (%i,%i) actual (%i,%i)", 
   1.464 +            "Check that source point %i was not modified: expected (%i,%i) actual (%i,%i)",
   1.465              i, refPoints[i].x, refPoints[i].y, points[i].x, points[i].y);
   1.466      }
   1.467 -    
   1.468 +
   1.469      // Call function and validate
   1.470      anyEnclosed = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)NULL, &result);
   1.471 -    SDLTest_AssertCheck(expectedEnclosed==anyEnclosed, 
   1.472 -        "Check return value %s, got %s", 
   1.473 -        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE", 
   1.474 -		(anyEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.475 +    SDLTest_AssertCheck(expectedEnclosed==anyEnclosed,
   1.476 +        "Check return value %s, got %s",
   1.477 +        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.478 +        (anyEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.479      for (i=0; i<numPoints; i++) {
   1.480          SDLTest_AssertCheck(refPoints[i].x==points[i].x && refPoints[i].y==points[i].y,
   1.481 -            "Check that source point %i was not modified: expected (%i,%i) actual (%i,%i)", 
   1.482 +            "Check that source point %i was not modified: expected (%i,%i) actual (%i,%i)",
   1.483              i, refPoints[i].x, refPoints[i].y, points[i].x, points[i].y);
   1.484      }
   1.485      SDLTest_AssertCheck(result.x==minx && result.y==miny && result.w==(maxx - minx + 1) && result.h==(maxy - miny + 1),
   1.486          "Check resulting enclosing rectangle: expected (%i,%i - %i,%i), actual (%i,%i - %i,%i)",
   1.487          minx, miny, maxx, maxy, result.x, result.y, result.x + result.w - 1, result.y + result.h - 1);
   1.488  
   1.489 -	return TEST_COMPLETED;
   1.490 +    return TEST_COMPLETED;
   1.491  }
   1.492  
   1.493  /*!
   1.494 @@ -1151,27 +1151,27 @@
   1.495      // Call function and validate - special case: no result requested
   1.496      clip = refClip;
   1.497      anyEnclosedNoResult = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)&clip, (SDL_Rect *)NULL);
   1.498 -    SDLTest_AssertCheck(expectedEnclosed==anyEnclosedNoResult, 
   1.499 -        "Expected return value %s, got %s", 
   1.500 -        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE", 
   1.501 -		(anyEnclosedNoResult==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.502 +    SDLTest_AssertCheck(expectedEnclosed==anyEnclosedNoResult,
   1.503 +        "Expected return value %s, got %s",
   1.504 +        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.505 +        (anyEnclosedNoResult==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.506      for (i=0; i<numPoints; i++) {
   1.507          SDLTest_AssertCheck(refPoints[i].x==points[i].x && refPoints[i].y==points[i].y,
   1.508 -            "Check that source point %i was not modified: expected (%i,%i) actual (%i,%i)", 
   1.509 +            "Check that source point %i was not modified: expected (%i,%i) actual (%i,%i)",
   1.510              i, refPoints[i].x, refPoints[i].y, points[i].x, points[i].y);
   1.511      }
   1.512      SDLTest_AssertCheck(refClip.x==clip.x && refClip.y==clip.y && refClip.w==clip.w && refClip.h==clip.h,
   1.513          "Check that source clipping rectangle was not modified");
   1.514 -    
   1.515 +
   1.516      // Call function and validate
   1.517      anyEnclosed = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)&clip, &result);
   1.518 -    SDLTest_AssertCheck(expectedEnclosed==anyEnclosed, 
   1.519 -        "Check return value %s, got %s", 
   1.520 -        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE", 
   1.521 -		(anyEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.522 +    SDLTest_AssertCheck(expectedEnclosed==anyEnclosed,
   1.523 +        "Check return value %s, got %s",
   1.524 +        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.525 +        (anyEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.526      for (i=0; i<numPoints; i++) {
   1.527          SDLTest_AssertCheck(refPoints[i].x==points[i].x && refPoints[i].y==points[i].y,
   1.528 -            "Check that source point %i was not modified: expected (%i,%i) actual (%i,%i)", 
   1.529 +            "Check that source point %i was not modified: expected (%i,%i) actual (%i,%i)",
   1.530              i, refPoints[i].x, refPoints[i].y, points[i].x, points[i].y);
   1.531      }
   1.532      SDLTest_AssertCheck(refClip.x==clip.x && refClip.y==clip.y && refClip.w==clip.w && refClip.h==clip.h,
   1.533 @@ -1180,19 +1180,19 @@
   1.534          SDLTest_AssertCheck(result.x==minx && result.y==miny && result.w==(maxx - minx + 1) && result.h==(maxy - miny + 1),
   1.535              "Check resulting enclosing rectangle: expected (%i,%i - %i,%i), actual (%i,%i - %i,%i)",
   1.536              minx, miny, maxx, maxy, result.x, result.y, result.x + result.w - 1, result.y + result.h - 1);
   1.537 -    }    
   1.538 -    
   1.539 +    }
   1.540 +
   1.541      /* Empty clipping rectangle */
   1.542      clip.w = 0;
   1.543      clip.h = 0;
   1.544      expectedEnclosed = SDL_FALSE;
   1.545      anyEnclosed = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)&clip, &result);
   1.546 -    SDLTest_AssertCheck(expectedEnclosed==anyEnclosed, 
   1.547 -        "Check return value %s, got %s", 
   1.548 -        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE", 
   1.549 -		(anyEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");    
   1.550 +    SDLTest_AssertCheck(expectedEnclosed==anyEnclosed,
   1.551 +        "Check return value %s, got %s",
   1.552 +        (expectedEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE",
   1.553 +        (anyEnclosed==SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   1.554  
   1.555 -	return TEST_COMPLETED;
   1.556 +    return TEST_COMPLETED;
   1.557  }
   1.558  
   1.559  /*!
   1.560 @@ -1211,16 +1211,16 @@
   1.561  
   1.562      // invalid parameter combinations
   1.563      anyEnclosed = SDL_EnclosePoints((SDL_Point *)NULL, 1, (const SDL_Rect *)&clip, &result);
   1.564 -    SDLTest_AssertCheck(anyEnclosed == SDL_FALSE, "Check that functions returns SDL_FALSE when 1st parameter is NULL"); 
   1.565 +    SDLTest_AssertCheck(anyEnclosed == SDL_FALSE, "Check that functions returns SDL_FALSE when 1st parameter is NULL");
   1.566      anyEnclosed = SDL_EnclosePoints((const SDL_Point *)points, 0, (const SDL_Rect *)&clip, &result);
   1.567      SDLTest_AssertCheck(anyEnclosed == SDL_FALSE, "Check that functions returns SDL_FALSE when 2nd parameter is 0");
   1.568      count = SDLTest_RandomIntegerInRange(-100, -1);
   1.569      anyEnclosed = SDL_EnclosePoints((const SDL_Point *)points, count, (const SDL_Rect *)&clip, &result);
   1.570 -    SDLTest_AssertCheck(anyEnclosed == SDL_FALSE, "Check that functions returns SDL_FALSE when 2nd parameter is %i (negative)", count); 
   1.571 +    SDLTest_AssertCheck(anyEnclosed == SDL_FALSE, "Check that functions returns SDL_FALSE when 2nd parameter is %i (negative)", count);
   1.572      anyEnclosed = SDL_EnclosePoints((SDL_Point *)NULL, 0, (const SDL_Rect *)&clip, &result);
   1.573 -    SDLTest_AssertCheck(anyEnclosed == SDL_FALSE, "Check that functions returns SDL_FALSE when 1st parameter is NULL and 2nd parameter was 0"); 
   1.574 +    SDLTest_AssertCheck(anyEnclosed == SDL_FALSE, "Check that functions returns SDL_FALSE when 1st parameter is NULL and 2nd parameter was 0");
   1.575  
   1.576 -	return TEST_COMPLETED;
   1.577 +    return TEST_COMPLETED;
   1.578  }
   1.579  
   1.580  /*!
   1.581 @@ -1237,9 +1237,9 @@
   1.582      SDL_Rect result;
   1.583      int minx, maxx, miny, maxy;
   1.584      int dx, dy;
   1.585 -    
   1.586 +
   1.587      /* Union 1x1 outside */
   1.588 -    for (dx = -1; dx < 2; dx++) {     
   1.589 +    for (dx = -1; dx < 2; dx++) {
   1.590          for (dy = -1; dy < 2; dy++) {
   1.591              if ((dx != 0) || (dy != 0)) {
   1.592                  refRectA.x=SDLTest_RandomIntegerInRange(-1024, 1024);
   1.593 @@ -1253,7 +1253,7 @@
   1.594                  minx = (refRectA.x<refRectB.x) ? refRectA.x : refRectB.x;
   1.595                  maxx = (refRectA.x>refRectB.x) ? refRectA.x : refRectB.x;
   1.596                  miny = (refRectA.y<refRectB.y) ? refRectA.y : refRectB.y;
   1.597 -                maxy = (refRectA.y>refRectB.y) ? refRectA.y : refRectB.y;                
   1.598 +                maxy = (refRectA.y>refRectB.y) ? refRectA.y : refRectB.y;
   1.599                  expectedResult.x = minx;
   1.600                  expectedResult.y = miny;
   1.601                  expectedResult.w = maxx - minx + 1;
   1.602 @@ -1267,7 +1267,7 @@
   1.603      }
   1.604  
   1.605      /* Union outside overlap */
   1.606 -    for (dx = -1; dx < 2; dx++) {     
   1.607 +    for (dx = -1; dx < 2; dx++) {
   1.608          for (dy = -1; dy < 2; dy++) {
   1.609              if ((dx != 0) || (dy != 0)) {
   1.610                  refRectA.x=SDLTest_RandomIntegerInRange(-1024, 1024);
   1.611 @@ -1291,7 +1291,7 @@
   1.612          }
   1.613      }
   1.614  
   1.615 -	return TEST_COMPLETED;
   1.616 +    return TEST_COMPLETED;
   1.617  }
   1.618  
   1.619  /*!
   1.620 @@ -1307,7 +1307,7 @@
   1.621      SDL_Rect expectedResult;
   1.622      SDL_Rect result;
   1.623  
   1.624 -    /* A empty */    
   1.625 +    /* A empty */
   1.626      refRectA.x=SDLTest_RandomIntegerInRange(-1024, 1024);
   1.627      refRectA.y=SDLTest_RandomIntegerInRange(-1024, 1024);
   1.628      refRectA.w=0;
   1.629 @@ -1321,8 +1321,8 @@
   1.630      rectB = refRectB;
   1.631      SDL_UnionRect(&rectA, &rectB, &result);
   1.632      _validateUnionRectResults(&rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   1.633 -    
   1.634 -    /* B empty */    
   1.635 +
   1.636 +    /* B empty */
   1.637      refRectA.x=SDLTest_RandomIntegerInRange(-1024, 1024);
   1.638      refRectA.y=SDLTest_RandomIntegerInRange(-1024, 1024);
   1.639      refRectA.w=SDLTest_RandomIntegerInRange(1, 1024);
   1.640 @@ -1337,7 +1337,7 @@
   1.641      SDL_UnionRect(&rectA, &rectB, &result);
   1.642      _validateUnionRectResults(&rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   1.643  
   1.644 -    /* A and B empty */    
   1.645 +    /* A and B empty */
   1.646      refRectA.x=SDLTest_RandomIntegerInRange(-1024, 1024);
   1.647      refRectA.y=SDLTest_RandomIntegerInRange(-1024, 1024);
   1.648      refRectA.w=0;
   1.649 @@ -1356,7 +1356,7 @@
   1.650      SDL_UnionRect(&rectA, &rectB, &result);
   1.651      _validateUnionRectResults(&rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   1.652  
   1.653 -	return TEST_COMPLETED;
   1.654 +    return TEST_COMPLETED;
   1.655  }
   1.656  
   1.657  /*!
   1.658 @@ -1372,7 +1372,7 @@
   1.659      SDL_Rect expectedResult;
   1.660      SDL_Rect result;
   1.661      int dx, dy;
   1.662 -    
   1.663 +
   1.664      /* Union 1x1 with itself */
   1.665      refRectA.x=SDLTest_RandomIntegerInRange(-1024, 1024);
   1.666      refRectA.y=SDLTest_RandomIntegerInRange(-1024, 1024);
   1.667 @@ -1399,7 +1399,7 @@
   1.668      _validateUnionRectResults(&rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   1.669  
   1.670      /* Union inside with edges modified */
   1.671 -    for (dx = -1; dx < 2; dx++) {     
   1.672 +    for (dx = -1; dx < 2; dx++) {
   1.673          for (dy = -1; dy < 2; dy++) {
   1.674              if ((dx != 0) || (dy != 0)) {
   1.675                  refRectA.x=SDLTest_RandomIntegerInRange(-1024, 1024);
   1.676 @@ -1410,7 +1410,7 @@
   1.677                  if (dx == -1) refRectB.x++;
   1.678                  if ((dx == 1) || (dx == -1)) refRectB.w--;
   1.679                  if (dy == -1) refRectB.y++;
   1.680 -                if ((dy == 1) || (dy == -1)) refRectB.h--;                
   1.681 +                if ((dy == 1) || (dy == -1)) refRectB.h--;
   1.682                  expectedResult = refRectA;
   1.683                  rectA = refRectA;
   1.684                  rectB = refRectB;
   1.685 @@ -1420,7 +1420,7 @@
   1.686          }
   1.687      }
   1.688  
   1.689 -	return TEST_COMPLETED;
   1.690 +    return TEST_COMPLETED;
   1.691  }
   1.692  
   1.693  /*!
   1.694 @@ -1436,19 +1436,19 @@
   1.695  
   1.696      // invalid parameter combinations
   1.697      SDL_UnionRect((SDL_Rect *)NULL, &rectB, &result);
   1.698 -    SDLTest_AssertPass("Check that function returns when 1st parameter is NULL"); 
   1.699 +    SDLTest_AssertPass("Check that function returns when 1st parameter is NULL");
   1.700      SDL_UnionRect(&rectA, (SDL_Rect *)NULL, &result);
   1.701 -    SDLTest_AssertPass("Check that function returns  when 2nd parameter is NULL"); 
   1.702 +    SDLTest_AssertPass("Check that function returns  when 2nd parameter is NULL");
   1.703      SDL_UnionRect(&rectA, &rectB, (SDL_Rect *)NULL);
   1.704 -    SDLTest_AssertPass("Check that function returns  when 3rd parameter is NULL"); 
   1.705 +    SDLTest_AssertPass("Check that function returns  when 3rd parameter is NULL");
   1.706      SDL_UnionRect((SDL_Rect *)NULL, &rectB, (SDL_Rect *)NULL);
   1.707 -    SDLTest_AssertPass("Check that function returns  when 1st and 3rd parameter are NULL"); 
   1.708 +    SDLTest_AssertPass("Check that function returns  when 1st and 3rd parameter are NULL");
   1.709      SDL_UnionRect(&rectA, (SDL_Rect *)NULL, (SDL_Rect *)NULL);
   1.710 -    SDLTest_AssertPass("Check that function returns  when 2nd and 3rd parameter are NULL"); 
   1.711 +    SDLTest_AssertPass("Check that function returns  when 2nd and 3rd parameter are NULL");
   1.712      SDL_UnionRect((SDL_Rect *)NULL, (SDL_Rect *)NULL, (SDL_Rect *)NULL);
   1.713 -    SDLTest_AssertPass("Check that function returns  when all parameters are NULL"); 
   1.714 +    SDLTest_AssertPass("Check that function returns  when all parameters are NULL");
   1.715  
   1.716 -	return TEST_COMPLETED;
   1.717 +    return TEST_COMPLETED;
   1.718  }
   1.719  
   1.720  /*!
   1.721 @@ -1474,7 +1474,7 @@
   1.722      rect = refRect;
   1.723      result = (SDL_bool)SDL_RectEmpty((const SDL_Rect *)&rect);
   1.724      _validateRectEmptyResults(result, expectedResult, &rect, &refRect);
   1.725 -    
   1.726 +
   1.727      // Empty case
   1.728      for (w=-1; w<2; w++) {
   1.729          for (h=-1; h<2; h++) {
   1.730 @@ -1491,7 +1491,7 @@
   1.731          }
   1.732      }
   1.733  
   1.734 -	return TEST_COMPLETED;
   1.735 +    return TEST_COMPLETED;
   1.736  }
   1.737  
   1.738  /*!
   1.739 @@ -1506,9 +1506,9 @@
   1.740  
   1.741      // invalid parameter combinations
   1.742      result = (SDL_bool)SDL_RectEmpty((const SDL_Rect *)NULL);
   1.743 -    SDLTest_AssertCheck(result == SDL_TRUE, "Check that function returns TRUE when 1st parameter is NULL"); 
   1.744 +    SDLTest_AssertCheck(result == SDL_TRUE, "Check that function returns TRUE when 1st parameter is NULL");
   1.745  
   1.746 -	return TEST_COMPLETED;
   1.747 +    return TEST_COMPLETED;
   1.748  }
   1.749  
   1.750  /*!
   1.751 @@ -1531,14 +1531,14 @@
   1.752      refRectA.y=SDLTest_RandomIntegerInRange(-1024, 1024);
   1.753      refRectA.w=SDLTest_RandomIntegerInRange(1, 1024);
   1.754      refRectA.h=SDLTest_RandomIntegerInRange(1, 1024);
   1.755 -    refRectB = refRectA;    
   1.756 +    refRectB = refRectA;
   1.757      expectedResult = SDL_TRUE;
   1.758      rectA = refRectA;
   1.759      rectB = refRectB;
   1.760      result = (SDL_bool)SDL_RectEquals((const SDL_Rect *)&rectA, (const SDL_Rect *)&rectB);
   1.761      _validateRectEqualsResults(result, expectedResult, &rectA, &rectB, &refRectA, &refRectB);
   1.762  
   1.763 -	return TEST_COMPLETED;
   1.764 +    return TEST_COMPLETED;
   1.765  }
   1.766  
   1.767  /*!
   1.768 @@ -1565,13 +1565,13 @@
   1.769  
   1.770      // invalid parameter combinations
   1.771      result = (SDL_bool)SDL_RectEquals((const SDL_Rect *)NULL, (const SDL_Rect *)&rectB);
   1.772 -    SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 1st parameter is NULL"); 
   1.773 +    SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 1st parameter is NULL");
   1.774      result = (SDL_bool)SDL_RectEquals((const SDL_Rect *)&rectA, (const SDL_Rect *)NULL);
   1.775 -    SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 2nd parameter is NULL"); 
   1.776 +    SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 2nd parameter is NULL");
   1.777      result = (SDL_bool)SDL_RectEquals((const SDL_Rect *)NULL, (const SDL_Rect *)NULL);
   1.778 -    SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 1st and 2nd parameter are NULL"); 
   1.779 +    SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 1st and 2nd parameter are NULL");
   1.780  
   1.781 -	return TEST_COMPLETED;
   1.782 +    return TEST_COMPLETED;
   1.783  }
   1.784  
   1.785  /* ================= Test References ================== */
   1.786 @@ -1580,98 +1580,98 @@
   1.787  
   1.788  /* SDL_IntersectRectAndLine */
   1.789  static const SDLTest_TestCaseReference rectTest1 =
   1.790 -		{ (SDLTest_TestCaseFp)rect_testIntersectRectAndLine,"rect_testIntersectRectAndLine",  "Tests SDL_IntersectRectAndLine clipping cases", TEST_ENABLED };
   1.791 +        { (SDLTest_TestCaseFp)rect_testIntersectRectAndLine,"rect_testIntersectRectAndLine",  "Tests SDL_IntersectRectAndLine clipping cases", TEST_ENABLED };
   1.792  
   1.793  static const SDLTest_TestCaseReference rectTest2 =
   1.794 -		{ (SDLTest_TestCaseFp)rect_testIntersectRectAndLineInside, "rect_testIntersectRectAndLineInside", "Tests SDL_IntersectRectAndLine with line fully contained in rect", TEST_ENABLED };
   1.795 +        { (SDLTest_TestCaseFp)rect_testIntersectRectAndLineInside, "rect_testIntersectRectAndLineInside", "Tests SDL_IntersectRectAndLine with line fully contained in rect", TEST_ENABLED };
   1.796  
   1.797  static const SDLTest_TestCaseReference rectTest3 =
   1.798 -		{ (SDLTest_TestCaseFp)rect_testIntersectRectAndLineOutside, "rect_testIntersectRectAndLineOutside", "Tests SDL_IntersectRectAndLine with line fully outside of rect", TEST_ENABLED };
   1.799 +        { (SDLTest_TestCaseFp)rect_testIntersectRectAndLineOutside, "rect_testIntersectRectAndLineOutside", "Tests SDL_IntersectRectAndLine with line fully outside of rect", TEST_ENABLED };
   1.800  
   1.801  static const SDLTest_TestCaseReference rectTest4 =
   1.802 -		{ (SDLTest_TestCaseFp)rect_testIntersectRectAndLineEmpty, "rect_testIntersectRectAndLineEmpty", "Tests SDL_IntersectRectAndLine with empty rectangle ", TEST_ENABLED };
   1.803 +        { (SDLTest_TestCaseFp)rect_testIntersectRectAndLineEmpty, "rect_testIntersectRectAndLineEmpty", "Tests SDL_IntersectRectAndLine with empty rectangle ", TEST_ENABLED };
   1.804  
   1.805  static const SDLTest_TestCaseReference rectTest5 =
   1.806 -		{ (SDLTest_TestCaseFp)rect_testIntersectRectAndLineParam, "rect_testIntersectRectAndLineParam", "Negative tests against SDL_IntersectRectAndLine with invalid parameters", TEST_ENABLED };
   1.807 +        { (SDLTest_TestCaseFp)rect_testIntersectRectAndLineParam, "rect_testIntersectRectAndLineParam", "Negative tests against SDL_IntersectRectAndLine with invalid parameters", TEST_ENABLED };
   1.808  
   1.809  /* SDL_IntersectRect */
   1.810  static const SDLTest_TestCaseReference rectTest6 =
   1.811 -		{ (SDLTest_TestCaseFp)rect_testIntersectRectInside, "rect_testIntersectRectInside", "Tests SDL_IntersectRect with B fully contained in A", TEST_ENABLED };
   1.812 +        { (SDLTest_TestCaseFp)rect_testIntersectRectInside, "rect_testIntersectRectInside", "Tests SDL_IntersectRect with B fully contained in A", TEST_ENABLED };
   1.813  
   1.814  static const SDLTest_TestCaseReference rectTest7 =
   1.815 -		{ (SDLTest_TestCaseFp)rect_testIntersectRectOutside, "rect_testIntersectRectOutside", "Tests SDL_IntersectRect with B fully outside of A", TEST_ENABLED };
   1.816 +        { (SDLTest_TestCaseFp)rect_testIntersectRectOutside, "rect_testIntersectRectOutside", "Tests SDL_IntersectRect with B fully outside of A", TEST_ENABLED };
   1.817  
   1.818  static const SDLTest_TestCaseReference rectTest8 =
   1.819 -		{ (SDLTest_TestCaseFp)rect_testIntersectRectPartial, "rect_testIntersectRectPartial", "Tests SDL_IntersectRect with B partially intersecting A", TEST_ENABLED };
   1.820 +        { (SDLTest_TestCaseFp)rect_testIntersectRectPartial, "rect_testIntersectRectPartial", "Tests SDL_IntersectRect with B partially intersecting A", TEST_ENABLED };
   1.821  
   1.822  static const SDLTest_TestCaseReference rectTest9 =
   1.823 -		{ (SDLTest_TestCaseFp)rect_testIntersectRectPoint, "rect_testIntersectRectPoint", "Tests SDL_IntersectRect with 1x1 sized rectangles", TEST_ENABLED };
   1.824 +        { (SDLTest_TestCaseFp)rect_testIntersectRectPoint, "rect_testIntersectRectPoint", "Tests SDL_IntersectRect with 1x1 sized rectangles", TEST_ENABLED };
   1.825  
   1.826  static const SDLTest_TestCaseReference rectTest10 =
   1.827 -		{ (SDLTest_TestCaseFp)rect_testIntersectRectEmpty, "rect_testIntersectRectEmpty", "Tests SDL_IntersectRect with empty rectangles", TEST_ENABLED };
   1.828 +        { (SDLTest_TestCaseFp)rect_testIntersectRectEmpty, "rect_testIntersectRectEmpty", "Tests SDL_IntersectRect with empty rectangles", TEST_ENABLED };
   1.829  
   1.830  static const SDLTest_TestCaseReference rectTest11 =
   1.831 -		{ (SDLTest_TestCaseFp)rect_testIntersectRectParam, "rect_testIntersectRectParam", "Negative tests against SDL_IntersectRect with invalid parameters", TEST_ENABLED };
   1.832 +        { (SDLTest_TestCaseFp)rect_testIntersectRectParam, "rect_testIntersectRectParam", "Negative tests against SDL_IntersectRect with invalid parameters", TEST_ENABLED };
   1.833  
   1.834  /* SDL_HasIntersection */
   1.835  static const SDLTest_TestCaseReference rectTest12 =
   1.836 -		{ (SDLTest_TestCaseFp)rect_testHasIntersectionInside, "rect_testHasIntersectionInside", "Tests SDL_HasIntersection with B fully contained in A", TEST_ENABLED };
   1.837 +        { (SDLTest_TestCaseFp)rect_testHasIntersectionInside, "rect_testHasIntersectionInside", "Tests SDL_HasIntersection with B fully contained in A", TEST_ENABLED };
   1.838  
   1.839  static const SDLTest_TestCaseReference rectTest13 =
   1.840 -		{ (SDLTest_TestCaseFp)rect_testHasIntersectionOutside, "rect_testHasIntersectionOutside", "Tests SDL_HasIntersection with B fully outside of A", TEST_ENABLED };
   1.841 +        { (SDLTest_TestCaseFp)rect_testHasIntersectionOutside, "rect_testHasIntersectionOutside", "Tests SDL_HasIntersection with B fully outside of A", TEST_ENABLED };
   1.842  
   1.843  static const SDLTest_TestCaseReference rectTest14 =
   1.844 -		{ (SDLTest_TestCaseFp)rect_testHasIntersectionPartial,"rect_testHasIntersectionPartial",  "Tests SDL_HasIntersection with B partially intersecting A", TEST_ENABLED };
   1.845 +        { (SDLTest_TestCaseFp)rect_testHasIntersectionPartial,"rect_testHasIntersectionPartial",  "Tests SDL_HasIntersection with B partially intersecting A", TEST_ENABLED };
   1.846  
   1.847  static const SDLTest_TestCaseReference rectTest15 =
   1.848 -		{ (SDLTest_TestCaseFp)rect_testHasIntersectionPoint, "rect_testHasIntersectionPoint", "Tests SDL_HasIntersection with 1x1 sized rectangles", TEST_ENABLED };
   1.849 +        { (SDLTest_TestCaseFp)rect_testHasIntersectionPoint, "rect_testHasIntersectionPoint", "Tests SDL_HasIntersection with 1x1 sized rectangles", TEST_ENABLED };
   1.850  
   1.851  static const SDLTest_TestCaseReference rectTest16 =
   1.852 -		{ (SDLTest_TestCaseFp)rect_testHasIntersectionEmpty, "rect_testHasIntersectionEmpty", "Tests SDL_HasIntersection with empty rectangles", TEST_ENABLED };
   1.853 +        { (SDLTest_TestCaseFp)rect_testHasIntersectionEmpty, "rect_testHasIntersectionEmpty", "Tests SDL_HasIntersection with empty rectangles", TEST_ENABLED };
   1.854  
   1.855  static const SDLTest_TestCaseReference rectTest17 =
   1.856 -		{ (SDLTest_TestCaseFp)rect_testHasIntersectionParam, "rect_testHasIntersectionParam", "Negative tests against SDL_HasIntersection with invalid parameters", TEST_ENABLED };
   1.857 +        { (SDLTest_TestCaseFp)rect_testHasIntersectionParam, "rect_testHasIntersectionParam", "Negative tests against SDL_HasIntersection with invalid parameters", TEST_ENABLED };
   1.858  
   1.859  /* SDL_EnclosePoints */
   1.860  static const SDLTest_TestCaseReference rectTest18 =
   1.861 -		{ (SDLTest_TestCaseFp)rect_testEnclosePoints, "rect_testEnclosePoints", "Tests SDL_EnclosePoints without clipping", TEST_ENABLED };
   1.862 +        { (SDLTest_TestCaseFp)rect_testEnclosePoints, "rect_testEnclosePoints", "Tests SDL_EnclosePoints without clipping", TEST_ENABLED };
   1.863  
   1.864  static const SDLTest_TestCaseReference rectTest19 =
   1.865 -		{ (SDLTest_TestCaseFp)rect_testEnclosePointsWithClipping, "rect_testEnclosePointsWithClipping", "Tests SDL_EnclosePoints with clipping", TEST_ENABLED };
   1.866 +        { (SDLTest_TestCaseFp)rect_testEnclosePointsWithClipping, "rect_testEnclosePointsWithClipping", "Tests SDL_EnclosePoints with clipping", TEST_ENABLED };
   1.867  
   1.868  static const SDLTest_TestCaseReference rectTest20 =
   1.869 -		{ (SDLTest_TestCaseFp)rect_testEnclosePointsRepeatedInput, "rect_testEnclosePointsRepeatedInput", "Tests SDL_EnclosePoints with repeated input", TEST_ENABLED };
   1.870 +        { (SDLTest_TestCaseFp)rect_testEnclosePointsRepeatedInput, "rect_testEnclosePointsRepeatedInput", "Tests SDL_EnclosePoints with repeated input", TEST_ENABLED };
   1.871  
   1.872  static const SDLTest_TestCaseReference rectTest21 =
   1.873 -		{ (SDLTest_TestCaseFp)rect_testEnclosePointsParam, "rect_testEnclosePointsParam", "Negative tests against SDL_EnclosePoints with invalid parameters", TEST_ENABLED };
   1.874 +        { (SDLTest_TestCaseFp)rect_testEnclosePointsParam, "rect_testEnclosePointsParam", "Negative tests against SDL_EnclosePoints with invalid parameters", TEST_ENABLED };
   1.875  
   1.876  /* SDL_UnionRect */
   1.877  static const SDLTest_TestCaseReference rectTest22 =
   1.878 -		{ (SDLTest_TestCaseFp)rect_testUnionRectInside, "rect_testUnionRectInside", "Tests SDL_UnionRect where rect B is inside rect A", TEST_ENABLED };
   1.879 +        { (SDLTest_TestCaseFp)rect_testUnionRectInside, "rect_testUnionRectInside", "Tests SDL_UnionRect where rect B is inside rect A", TEST_ENABLED };
   1.880  
   1.881  static const SDLTest_TestCaseReference rectTest23 =
   1.882 -		{ (SDLTest_TestCaseFp)rect_testUnionRectOutside, "rect_testUnionRectOutside", "Tests SDL_UnionRect where rect B is outside rect A", TEST_ENABLED };
   1.883 +        { (SDLTest_TestCaseFp)rect_testUnionRectOutside, "rect_testUnionRectOutside", "Tests SDL_UnionRect where rect B is outside rect A", TEST_ENABLED };
   1.884  
   1.885  static const SDLTest_TestCaseReference rectTest24 =
   1.886 -		{ (SDLTest_TestCaseFp)rect_testUnionRectEmpty, "rect_testUnionRectEmpty", "Tests SDL_UnionRect where rect A or rect B are empty", TEST_ENABLED };
   1.887 +        { (SDLTest_TestCaseFp)rect_testUnionRectEmpty, "rect_testUnionRectEmpty", "Tests SDL_UnionRect where rect A or rect B are empty", TEST_ENABLED };
   1.888  
   1.889  static const SDLTest_TestCaseReference rectTest25 =
   1.890 -		{ (SDLTest_TestCaseFp)rect_testUnionRectParam, "rect_testUnionRectParam", "Negative tests against SDL_UnionRect with invalid parameters", TEST_ENABLED };
   1.891 +        { (SDLTest_TestCaseFp)rect_testUnionRectParam, "rect_testUnionRectParam", "Negative tests against SDL_UnionRect with invalid parameters", TEST_ENABLED };
   1.892  
   1.893  /* SDL_RectEmpty */
   1.894  static const SDLTest_TestCaseReference rectTest26 =
   1.895 -		{ (SDLTest_TestCaseFp)rect_testRectEmpty, "rect_testRectEmpty", "Tests SDL_RectEmpty with various inputs", TEST_ENABLED };
   1.896 +        { (SDLTest_TestCaseFp)rect_testRectEmpty, "rect_testRectEmpty", "Tests SDL_RectEmpty with various inputs", TEST_ENABLED };
   1.897  
   1.898  static const SDLTest_TestCaseReference rectTest27 =
   1.899 -		{ (SDLTest_TestCaseFp)rect_testRectEmptyParam, "rect_testRectEmptyParam", "Negative tests against SDL_RectEmpty with invalid parameters", TEST_ENABLED };
   1.900 +        { (SDLTest_TestCaseFp)rect_testRectEmptyParam, "rect_testRectEmptyParam", "Negative tests against SDL_RectEmpty with invalid parameters", TEST_ENABLED };
   1.901  
   1.902  /* SDL_RectEquals */
   1.903  
   1.904  static const SDLTest_TestCaseReference rectTest28 =
   1.905 -		{ (SDLTest_TestCaseFp)rect_testRectEquals, "rect_testRectEquals", "Tests SDL_RectEquals with various inputs", TEST_ENABLED };
   1.906 +        { (SDLTest_TestCaseFp)rect_testRectEquals, "rect_testRectEquals", "Tests SDL_RectEquals with various inputs", TEST_ENABLED };
   1.907  
   1.908  static const SDLTest_TestCaseReference rectTest29 =
   1.909 -		{ (SDLTest_TestCaseFp)rect_testRectEqualsParam, "rect_testRectEqualsParam", "Negative tests against SDL_RectEquals with invalid parameters", TEST_ENABLED };
   1.910 +        { (SDLTest_TestCaseFp)rect_testRectEqualsParam, "rect_testRectEqualsParam", "Negative tests against SDL_RectEquals with invalid parameters", TEST_ENABLED };
   1.911  
   1.912  
   1.913  /*!
   1.914 @@ -1681,16 +1681,16 @@
   1.915   * http://wiki.libsdl.org/moin.cgi/CategoryRect
   1.916   */
   1.917  static const SDLTest_TestCaseReference *rectTests[] =  {
   1.918 -	&rectTest1, &rectTest2, &rectTest3, &rectTest4, &rectTest5, &rectTest6, &rectTest7, &rectTest8, &rectTest9, &rectTest10, &rectTest11, &rectTest12, &rectTest13, &rectTest14, 
   1.919 -	&rectTest15, &rectTest16, &rectTest17, &rectTest18, &rectTest19, &rectTest20, &rectTest21, &rectTest22, &rectTest23, &rectTest24, &rectTest25, &rectTest26, &rectTest27,
   1.920 -	&rectTest28, &rectTest29, NULL
   1.921 +    &rectTest1, &rectTest2, &rectTest3, &rectTest4, &rectTest5, &rectTest6, &rectTest7, &rectTest8, &rectTest9, &rectTest10, &rectTest11, &rectTest12, &rectTest13, &rectTest14,
   1.922 +    &rectTest15, &rectTest16, &rectTest17, &rectTest18, &rectTest19, &rectTest20, &rectTest21, &rectTest22, &rectTest23, &rectTest24, &rectTest25, &rectTest26, &rectTest27,
   1.923 +    &rectTest28, &rectTest29, NULL
   1.924  };
   1.925  
   1.926  
   1.927  /* Rect test suite (global) */
   1.928  SDLTest_TestSuiteReference rectTestSuite = {
   1.929 -	"Rect",
   1.930 -	NULL,
   1.931 -	rectTests,
   1.932 -	NULL
   1.933 +    "Rect",
   1.934 +    NULL,
   1.935 +    rectTests,
   1.936 +    NULL
   1.937  };