Merge branch 'mcatanzaro/string-test' into 'master'

tests: Add missing return value check in string test

See merge request GNOME/glib!2100
This commit is contained in:
Philip Withnall 2021-05-11 22:27:44 +00:00
commit c0b339372c

View File

@ -519,6 +519,7 @@ test_string_replace (void)
n = g_string_replace (s, "a", "abcdefghijkl", 0);
g_assert_cmpstr ("abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl",
==, s->str);
g_assert_cmpint (n, ==, 8);
g_string_free (s, TRUE);
}