tests: blend-string: use g_assert_cmpint
It's very useful to see the actual number the reference value is compared too when the test fails. GTest has g_assert_cmp$type() functions for that, so make good use of them.
This commit is contained in:
parent
de31cbf4f7
commit
afb30f4013
@ -41,9 +41,9 @@ check_pixel (GLubyte *pixel, guint32 color)
|
||||
g_print (" expected = %x, %x, %x, %x\n",
|
||||
r, g, b, a);
|
||||
/* FIXME - allow for hardware in-precision */
|
||||
g_assert (pixel[RED] == r);
|
||||
g_assert (pixel[GREEN] == g);
|
||||
g_assert (pixel[BLUE] == b);
|
||||
g_assert_cmpint (pixel[RED], ==, r);
|
||||
g_assert_cmpint (pixel[GREEN], ==, g);
|
||||
g_assert_cmpint (pixel[BLUE], ==, b);
|
||||
|
||||
/* FIXME
|
||||
* We ignore the alpha, since we don't know if our render target is
|
||||
|
Loading…
x
Reference in New Issue
Block a user