mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Improve the g_string_truncate test
Test the inline version too.
This commit is contained in:
parent
c191c99748
commit
d102a4d8b2
@ -436,7 +436,7 @@ test_string_truncate (void)
|
||||
g_assert (string->len == strlen("testing"));
|
||||
g_assert_cmpstr (string->str, ==, "testing");
|
||||
|
||||
g_string_truncate (string, 4);
|
||||
(g_string_truncate) (string, 4);
|
||||
g_assert (string->len == 4);
|
||||
g_assert_cmpstr (string->str, ==, "test");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user