test/testautomation_rect.c
changeset 7678 286c42d7c5ed
parent 7663 53fe1b64eb2d
     1.1 --- a/test/testautomation_rect.c	Wed Aug 21 09:43:09 2013 -0300
     1.2 +++ b/test/testautomation_rect.c	Wed Aug 21 09:47:10 2013 -0300
     1.3 @@ -12,7 +12,7 @@
     1.4  
     1.5  /* Helper functions */
     1.6  
     1.7 -/*!
     1.8 +/* !
     1.9   * \brief Private helper to check SDL_IntersectRectAndLine results
    1.10   */
    1.11  void _validateIntersectRectAndLineResults(
    1.12 @@ -39,7 +39,7 @@
    1.13  
    1.14  /* Test case functions */
    1.15  
    1.16 -/*!
    1.17 +/* !
    1.18   * \brief Tests SDL_IntersectRectAndLine() clipping cases
    1.19   *
    1.20   * \sa
    1.21 @@ -110,7 +110,7 @@
    1.22      return TEST_COMPLETED;
    1.23  }
    1.24  
    1.25 -/*!
    1.26 +/* !
    1.27   * \brief Tests SDL_IntersectRectAndLine() non-clipping case line inside
    1.28   *
    1.29   * \sa
    1.30 @@ -177,7 +177,7 @@
    1.31      return TEST_COMPLETED;
    1.32  }
    1.33  
    1.34 -/*!
    1.35 +/* !
    1.36   * \brief Tests SDL_IntersectRectAndLine() non-clipping cases outside
    1.37   *
    1.38   * \sa
    1.39 @@ -232,7 +232,7 @@
    1.40      return TEST_COMPLETED;
    1.41  }
    1.42  
    1.43 -/*!
    1.44 +/* !
    1.45   * \brief Tests SDL_IntersectRectAndLine() with empty rectangle
    1.46   *
    1.47   * \sa
    1.48 @@ -267,7 +267,7 @@
    1.49      return TEST_COMPLETED;
    1.50  }
    1.51  
    1.52 -/*!
    1.53 +/* !
    1.54   * \brief Negative tests against SDL_IntersectRectAndLine() with invalid parameters
    1.55   *
    1.56   * \sa
    1.57 @@ -302,7 +302,7 @@
    1.58      return TEST_COMPLETED;
    1.59  }
    1.60  
    1.61 -/*!
    1.62 +/* !
    1.63   * \brief Private helper to check SDL_HasIntersection results
    1.64   */
    1.65  void _validateHasIntersectionResults(
    1.66 @@ -325,7 +325,7 @@
    1.67          refRectB->x, refRectB->y, refRectB->w, refRectB->h);
    1.68  }
    1.69  
    1.70 -/*!
    1.71 +/* !
    1.72   * \brief Private helper to check SDL_IntersectRect results
    1.73   */
    1.74  void _validateIntersectRectResults(
    1.75 @@ -344,7 +344,7 @@
    1.76      }
    1.77  }
    1.78  
    1.79 -/*!
    1.80 +/* !
    1.81   * \brief Private helper to check SDL_UnionRect results
    1.82   */
    1.83  void _validateUnionRectResults(
    1.84 @@ -367,7 +367,7 @@
    1.85          expectedResult->x, expectedResult->y, expectedResult->w, expectedResult->h);
    1.86  }
    1.87  
    1.88 -/*!
    1.89 +/* !
    1.90   * \brief Private helper to check SDL_RectEmpty results
    1.91   */
    1.92  void _validateRectEmptyResults(
    1.93 @@ -385,7 +385,7 @@
    1.94          refRect->x, refRect->y, refRect->w, refRect->h);
    1.95  }
    1.96  
    1.97 -/*!
    1.98 +/* !
    1.99   * \brief Private helper to check SDL_RectEquals results
   1.100   */
   1.101  void _validateRectEqualsResults(
   1.102 @@ -408,7 +408,7 @@
   1.103          refRectB->x, refRectB->y, refRectB->w, refRectB->h);
   1.104  }
   1.105  
   1.106 -/*!
   1.107 +/* !
   1.108   * \brief Tests SDL_IntersectRect() with B fully inside A
   1.109   *
   1.110   * \sa
   1.111 @@ -436,7 +436,7 @@
   1.112      return TEST_COMPLETED;
   1.113  }
   1.114  
   1.115 -/*!
   1.116 +/* !
   1.117   * \brief Tests SDL_IntersectRect() with B fully outside A
   1.118   *
   1.119   * \sa
   1.120 @@ -464,7 +464,7 @@
   1.121      return TEST_COMPLETED;
   1.122  }
   1.123  
   1.124 -/*!
   1.125 +/* !
   1.126   * \brief Tests SDL_IntersectRect() with B partially intersecting A
   1.127   *
   1.128   * \sa
   1.129 @@ -553,7 +553,7 @@
   1.130      return TEST_COMPLETED;
   1.131  }
   1.132  
   1.133 -/*!
   1.134 +/* !
   1.135   * \brief Tests SDL_IntersectRect() with 1x1 pixel sized rectangles
   1.136   *
   1.137   * \sa
   1.138 @@ -600,7 +600,7 @@
   1.139      return TEST_COMPLETED;
   1.140  }
   1.141  
   1.142 -/*!
   1.143 +/* !
   1.144   * \brief Tests SDL_IntersectRect() with empty rectangles
   1.145   *
   1.146   * \sa
   1.147 @@ -672,7 +672,7 @@
   1.148      return TEST_COMPLETED;
   1.149  }
   1.150  
   1.151 -/*!
   1.152 +/* !
   1.153   * \brief Negative tests against SDL_IntersectRect() with invalid parameters
   1.154   *
   1.155   * \sa
   1.156 @@ -702,7 +702,7 @@
   1.157      return TEST_COMPLETED;
   1.158  }
   1.159  
   1.160 -/*!
   1.161 +/* !
   1.162   * \brief Tests SDL_HasIntersection() with B fully inside A
   1.163   *
   1.164   * \sa
   1.165 @@ -729,7 +729,7 @@
   1.166      return TEST_COMPLETED;
   1.167  }
   1.168  
   1.169 -/*!
   1.170 +/* !
   1.171   * \brief Tests SDL_HasIntersection() with B fully outside A
   1.172   *
   1.173   * \sa
   1.174 @@ -756,7 +756,7 @@
   1.175      return TEST_COMPLETED;
   1.176  }
   1.177  
   1.178 -/*!
   1.179 +/* !
   1.180   * \brief Tests SDL_HasIntersection() with B partially intersecting A
   1.181   *
   1.182   * \sa
   1.183 @@ -823,7 +823,7 @@
   1.184      return TEST_COMPLETED;
   1.185  }
   1.186  
   1.187 -/*!
   1.188 +/* !
   1.189   * \brief Tests SDL_HasIntersection() with 1x1 pixel sized rectangles
   1.190   *
   1.191   * \sa
   1.192 @@ -869,7 +869,7 @@
   1.193      return TEST_COMPLETED;
   1.194  }
   1.195  
   1.196 -/*!
   1.197 +/* !
   1.198   * \brief Tests SDL_HasIntersection() with empty rectangles
   1.199   *
   1.200   * \sa
   1.201 @@ -927,7 +927,7 @@
   1.202      return TEST_COMPLETED;
   1.203  }
   1.204  
   1.205 -/*!
   1.206 +/* !
   1.207   * \brief Negative tests against SDL_HasIntersection() with invalid parameters
   1.208   *
   1.209   * \sa
   1.210 @@ -950,7 +950,7 @@
   1.211      return TEST_COMPLETED;
   1.212  }
   1.213  
   1.214 -/*!
   1.215 +/* !
   1.216   * \brief Test SDL_EnclosePoints() without clipping
   1.217   *
   1.218   * \sa
   1.219 @@ -1020,7 +1020,7 @@
   1.220      return TEST_COMPLETED;
   1.221  }
   1.222  
   1.223 -/*!
   1.224 +/* !
   1.225   * \brief Test SDL_EnclosePoints() with repeated input points
   1.226   *
   1.227   * \sa
   1.228 @@ -1096,7 +1096,7 @@
   1.229      return TEST_COMPLETED;
   1.230  }
   1.231  
   1.232 -/*!
   1.233 +/* !
   1.234   * \brief Test SDL_EnclosePoints() with clipping
   1.235   *
   1.236   * \sa
   1.237 @@ -1195,7 +1195,7 @@
   1.238      return TEST_COMPLETED;
   1.239  }
   1.240  
   1.241 -/*!
   1.242 +/* !
   1.243   * \brief Negative tests against SDL_EnclosePoints() with invalid parameters
   1.244   *
   1.245   * \sa
   1.246 @@ -1223,7 +1223,7 @@
   1.247      return TEST_COMPLETED;
   1.248  }
   1.249  
   1.250 -/*!
   1.251 +/* !
   1.252   * \brief Tests SDL_UnionRect() where rect B is outside rect A
   1.253   *
   1.254   * \sa
   1.255 @@ -1294,7 +1294,7 @@
   1.256      return TEST_COMPLETED;
   1.257  }
   1.258  
   1.259 -/*!
   1.260 +/* !
   1.261   * \brief Tests SDL_UnionRect() where rect A or rect B are empty
   1.262   *
   1.263   * \sa
   1.264 @@ -1359,7 +1359,7 @@
   1.265      return TEST_COMPLETED;
   1.266  }
   1.267  
   1.268 -/*!
   1.269 +/* !
   1.270   * \brief Tests SDL_UnionRect() where rect B is inside rect A
   1.271   *
   1.272   * \sa
   1.273 @@ -1423,7 +1423,7 @@
   1.274      return TEST_COMPLETED;
   1.275  }
   1.276  
   1.277 -/*!
   1.278 +/* !
   1.279   * \brief Negative tests against SDL_UnionRect() with invalid parameters
   1.280   *
   1.281   * \sa
   1.282 @@ -1451,7 +1451,7 @@
   1.283      return TEST_COMPLETED;
   1.284  }
   1.285  
   1.286 -/*!
   1.287 +/* !
   1.288   * \brief Tests SDL_RectEmpty() with various inputs
   1.289   *
   1.290   * \sa
   1.291 @@ -1494,7 +1494,7 @@
   1.292      return TEST_COMPLETED;
   1.293  }
   1.294  
   1.295 -/*!
   1.296 +/* !
   1.297   * \brief Negative tests against SDL_RectEmpty() with invalid parameters
   1.298   *
   1.299   * \sa
   1.300 @@ -1511,7 +1511,7 @@
   1.301      return TEST_COMPLETED;
   1.302  }
   1.303  
   1.304 -/*!
   1.305 +/* !
   1.306   * \brief Tests SDL_RectEquals() with various inputs
   1.307   *
   1.308   * \sa
   1.309 @@ -1541,7 +1541,7 @@
   1.310      return TEST_COMPLETED;
   1.311  }
   1.312  
   1.313 -/*!
   1.314 +/* !
   1.315   * \brief Negative tests against SDL_RectEquals() with invalid parameters
   1.316   *
   1.317   * \sa
   1.318 @@ -1674,7 +1674,7 @@
   1.319          { (SDLTest_TestCaseFp)rect_testRectEqualsParam, "rect_testRectEqualsParam", "Negative tests against SDL_RectEquals with invalid parameters", TEST_ENABLED };
   1.320  
   1.321  
   1.322 -/*!
   1.323 +/* !
   1.324   * \brief Sequence of Rect test cases; functions that handle simple rectangles including overlaps and merges.
   1.325   *
   1.326   * \sa