mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Improve the g_string_truncate test
Test the inline version too.
This commit is contained in:
@@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user