convert: Fix tautological comparisons in tests

https://bugzilla.gnome.org/show_bug.cgi?id=767239
This commit is contained in:
Krzesimir Nowak 2016-06-04 15:15:37 +02:00 committed by Philip Withnall
parent ea2901abf8
commit f5e229c76d

View File

@ -168,7 +168,7 @@ check_utf8_to_ucs4 (const char *utf8,
error2 = NULL;
result2 = g_utf8_to_ucs4 (utf8, -1, &items_read2, &items_written2, &error2);
g_assert (error || items_read2 == items_read);
g_assert (error || items_written2 == items_written2);
g_assert (error || items_written2 == items_written);
g_assert_cmpint (!!result, ==, !!result2);
g_assert_cmpint (!!error, ==, !!error2);
if (result)
@ -309,7 +309,7 @@ check_utf8_to_utf16 (const char *utf8,
error2 = NULL;
result2 = g_utf8_to_utf16 (utf8, -1, &items_read2, &items_written2, &error2);
g_assert (error || items_read2 == items_read);
g_assert (error || items_written2 == items_written2);
g_assert (error || items_written2 == items_written);
g_assert_cmpint (!!result, ==, !!result2);
g_assert_cmpint (!!error, ==, !!error2);
if (result)
@ -526,7 +526,7 @@ check_utf16_to_ucs4 (const gunichar2 *utf16,
error2 = NULL;
result2 = g_utf16_to_ucs4 (utf16, -1, &items_read2, &items_written2, &error2);
g_assert (error || items_read2 == items_read);
g_assert (error || items_written2 == items_written2);
g_assert (error || items_written2 == items_written);
g_assert_cmpint (!!result, ==, !!result2);
g_assert_cmpint (!!error, ==, !!error2);
if (result)