mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
convert: Fix tautological comparisons in tests
https://bugzilla.gnome.org/show_bug.cgi?id=767239
This commit is contained in:
parent
ea2901abf8
commit
f5e229c76d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user