Updated assert messages in surface test suite.
authorMarkus Kauppila <markus.kauppila@gmail.com>
Sun, 10 Jul 2011 18:48:31 +0300
changeset 5752 528866846266
parent 5751 cbb921210496
child 5753 5e8c5282cac0
Updated assert messages in surface test suite.
test/test-automation/testsurface/testsurface.c
--- a/test/test-automation/testsurface/testsurface.c	Sun Jul 10 18:42:52 2011 +0300
+++ b/test/test-automation/testsurface/testsurface.c	Sun Jul 10 18:48:31 2011 +0300
@@ -134,7 +134,7 @@
 
    /* See if it's the same. */
    AssertTrue(surface_compare( rface, &img_face, 0 ) == 0,
-		   "Primitives output not the same.");
+		   "Comparing primitives output.");
 
    /* Clean up. */
    SDL_FreeSurface( rface );
@@ -204,7 +204,7 @@
 
    /* See if it's the same. */
    AssertTrue(surface_compare( testsur, &img_blit, 0 ) == 0,
-		   "Blitting output not the same (normal blit).");
+		   "Comparing blitting output (normal blit).");
 
    /* Clear surface. */
    ret = SDL_FillRect( testsur, NULL,
@@ -229,7 +229,7 @@
 
    /* See if it's the same. */
    AssertTrue(surface_compare( testsur, &img_blitColour, 0 ) == 0,
-		   "Blitting output not the same (using SDL_SetSurfaceColorMod).");
+		   "Comparing blitting output (using SDL_SetSurfaceColorMod).");
 
    /* Clear surface. */
    ret = SDL_FillRect( testsur, NULL,
@@ -257,7 +257,7 @@
 
    /* See if it's the same. */
    AssertTrue(surface_compare( testsur, &img_blitAlpha, 0 ) == 0,
-		   "Blitting output not the same (using SDL_SetSurfaceAlphaMod).");
+		   "Comparing blitting output (using SDL_SetSurfaceAlphaMod).");
 
    /* Clean up. */
    SDL_FreeSurface( face );
@@ -321,25 +321,25 @@
    if (testBlitBlendMode( testsur, face, SDL_BLENDMODE_NONE ))
       return;
    AssertTrue(surface_compare( testsur, &img_blendNone, 0 ) == 0,
-   		   "Blitting blending output not the same (using SDL_BLENDMODE_NONE).");
+   		   "Comparing blitting blending output (using SDL_BLENDMODE_NONE).");
 
    /* Test Blend. */
    if (testBlitBlendMode( testsur, face, SDL_BLENDMODE_BLEND ))
       return;
    AssertTrue(surface_compare( testsur, &img_blendBlend, 0 ) == 0,
-   		   "Blitting blending output not the same (using SDL_BLENDMODE_BLEND).");
+   		   "Comparing blitting blending output (using SDL_BLENDMODE_BLEND).");
 
    /* Test Add. */
    if (testBlitBlendMode( testsur, face, SDL_BLENDMODE_ADD ))
       return;
    AssertTrue(surface_compare( testsur, &img_blendAdd, 0 ) == 0,
-   		      "Blitting blending output not the same (using SDL_BLENDMODE_ADD).");
+   		      "Comparing blitting blending output (using SDL_BLENDMODE_ADD).");
 
    /* Test Mod. */
    if (testBlitBlendMode( testsur, face, SDL_BLENDMODE_MOD ))
       return;
    AssertTrue(surface_compare( testsur, &img_blendMod, 0 ) == 0,
-   		      "Blitting blending output not the same (using SDL_BLENDMODE_MOD).");
+   		      "Comparing blitting blending output not the same (using SDL_BLENDMODE_MOD).");
 
    /* Clear surface. */
    ret = SDL_FillRect( testsur, NULL,
@@ -379,7 +379,7 @@
 
    /* Check to see if matches. */
    AssertTrue(surface_compare( testsur, &img_blendAll, 0 ) == 0,
-		      "Blitting blending output not the same (using SDL_BLEND_*).");
+		      "Surface comparison (surface_compare).");
 
    /* Clean up. */
    SDL_FreeSurface( face );