Updated assert messages in surface test suite.
authorMarkus Kauppila
Sun, 10 Jul 2011 18:48:31 +0300
changeset 5752528866846266
parent 5751 cbb921210496
child 5753 5e8c5282cac0
Updated assert messages in surface test suite.
test/test-automation/testsurface/testsurface.c
     1.1 --- a/test/test-automation/testsurface/testsurface.c	Sun Jul 10 18:42:52 2011 +0300
     1.2 +++ b/test/test-automation/testsurface/testsurface.c	Sun Jul 10 18:48:31 2011 +0300
     1.3 @@ -134,7 +134,7 @@
     1.4  
     1.5     /* See if it's the same. */
     1.6     AssertTrue(surface_compare( rface, &img_face, 0 ) == 0,
     1.7 -		   "Primitives output not the same.");
     1.8 +		   "Comparing primitives output.");
     1.9  
    1.10     /* Clean up. */
    1.11     SDL_FreeSurface( rface );
    1.12 @@ -204,7 +204,7 @@
    1.13  
    1.14     /* See if it's the same. */
    1.15     AssertTrue(surface_compare( testsur, &img_blit, 0 ) == 0,
    1.16 -		   "Blitting output not the same (normal blit).");
    1.17 +		   "Comparing blitting output (normal blit).");
    1.18  
    1.19     /* Clear surface. */
    1.20     ret = SDL_FillRect( testsur, NULL,
    1.21 @@ -229,7 +229,7 @@
    1.22  
    1.23     /* See if it's the same. */
    1.24     AssertTrue(surface_compare( testsur, &img_blitColour, 0 ) == 0,
    1.25 -		   "Blitting output not the same (using SDL_SetSurfaceColorMod).");
    1.26 +		   "Comparing blitting output (using SDL_SetSurfaceColorMod).");
    1.27  
    1.28     /* Clear surface. */
    1.29     ret = SDL_FillRect( testsur, NULL,
    1.30 @@ -257,7 +257,7 @@
    1.31  
    1.32     /* See if it's the same. */
    1.33     AssertTrue(surface_compare( testsur, &img_blitAlpha, 0 ) == 0,
    1.34 -		   "Blitting output not the same (using SDL_SetSurfaceAlphaMod).");
    1.35 +		   "Comparing blitting output (using SDL_SetSurfaceAlphaMod).");
    1.36  
    1.37     /* Clean up. */
    1.38     SDL_FreeSurface( face );
    1.39 @@ -321,25 +321,25 @@
    1.40     if (testBlitBlendMode( testsur, face, SDL_BLENDMODE_NONE ))
    1.41        return;
    1.42     AssertTrue(surface_compare( testsur, &img_blendNone, 0 ) == 0,
    1.43 -   		   "Blitting blending output not the same (using SDL_BLENDMODE_NONE).");
    1.44 +   		   "Comparing blitting blending output (using SDL_BLENDMODE_NONE).");
    1.45  
    1.46     /* Test Blend. */
    1.47     if (testBlitBlendMode( testsur, face, SDL_BLENDMODE_BLEND ))
    1.48        return;
    1.49     AssertTrue(surface_compare( testsur, &img_blendBlend, 0 ) == 0,
    1.50 -   		   "Blitting blending output not the same (using SDL_BLENDMODE_BLEND).");
    1.51 +   		   "Comparing blitting blending output (using SDL_BLENDMODE_BLEND).");
    1.52  
    1.53     /* Test Add. */
    1.54     if (testBlitBlendMode( testsur, face, SDL_BLENDMODE_ADD ))
    1.55        return;
    1.56     AssertTrue(surface_compare( testsur, &img_blendAdd, 0 ) == 0,
    1.57 -   		      "Blitting blending output not the same (using SDL_BLENDMODE_ADD).");
    1.58 +   		      "Comparing blitting blending output (using SDL_BLENDMODE_ADD).");
    1.59  
    1.60     /* Test Mod. */
    1.61     if (testBlitBlendMode( testsur, face, SDL_BLENDMODE_MOD ))
    1.62        return;
    1.63     AssertTrue(surface_compare( testsur, &img_blendMod, 0 ) == 0,
    1.64 -   		      "Blitting blending output not the same (using SDL_BLENDMODE_MOD).");
    1.65 +   		      "Comparing blitting blending output not the same (using SDL_BLENDMODE_MOD).");
    1.66  
    1.67     /* Clear surface. */
    1.68     ret = SDL_FillRect( testsur, NULL,
    1.69 @@ -379,7 +379,7 @@
    1.70  
    1.71     /* Check to see if matches. */
    1.72     AssertTrue(surface_compare( testsur, &img_blendAll, 0 ) == 0,
    1.73 -		      "Blitting blending output not the same (using SDL_BLEND_*).");
    1.74 +		      "Surface comparison (surface_compare).");
    1.75  
    1.76     /* Clean up. */
    1.77     SDL_FreeSurface( face );