diff options
Diffstat (limited to 'tests/gdimagecolorexact/gdimagecolorexact.c')
-rw-r--r-- | tests/gdimagecolorexact/gdimagecolorexact.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/gdimagecolorexact/gdimagecolorexact.c b/tests/gdimagecolorexact/gdimagecolorexact.c index e127b84..54698df 100644 --- a/tests/gdimagecolorexact/gdimagecolorexact.c +++ b/tests/gdimagecolorexact/gdimagecolorexact.c @@ -30,29 +30,29 @@ int main() c3 = gdImageColorExactAlpha(im, 255, 0, 255, 100); c4 = gdImageColorExactAlpha(im, 255, 34, 255, 100); - - if (gdTestAssert(c1 == 0) != 1) { + if (gdTestAssert(c1 == 0)) { color = gdTrueColorAlpha(gdImageRed(im, c1), gdImageGreen(im, c1), gdImageBlue(im, c1), 0); if (gdTestAssert(color == 0xFF00FF) != 1) { error = -1; } } - if (gdTestAssert(c2 == 1) != 1) { + + if (gdTestAssert(c2 == 1)) { color = gdTrueColorAlpha(gdImageRed(im, c2), gdImageGreen(im, c2), gdImageBlue(im, c2), 0); if (gdTestAssert(color == 0xFFC800) != 1) { error = -1; } } - if (gdTestAssert(c3 == 2) != 1) { + if (gdTestAssert(c3 == 2)) { color = gdTrueColorAlpha(gdImageRed(im, c3), gdImageGreen(im, c3), gdImageBlue(im, c3), 0); if (gdTestAssert(color == 0xFF00FF) != 1) { error = -1; } } - if (gdTestAssert(c4 == -1) != 1) { + if (!gdTestAssert(c4 == -1)) { error = -1; } |