Improve the g_string_truncate test

Test the inline version too.
This commit is contained in:
Matthias Clasen 2023-01-14 09:43:51 -05:00
parent c191c99748
commit d102a4d8b2

View File

@ -436,7 +436,7 @@ test_string_truncate (void)
g_assert (string->len == strlen("testing")); g_assert (string->len == strlen("testing"));
g_assert_cmpstr (string->str, ==, "testing"); g_assert_cmpstr (string->str, ==, "testing");
g_string_truncate (string, 4); (g_string_truncate) (string, 4);
g_assert (string->len == 4); g_assert (string->len == 4);
g_assert_cmpstr (string->str, ==, "test"); g_assert_cmpstr (string->str, ==, "test");