testsuite: Also test removing items from section

This allowed me to find another bug.
This commit is contained in:
António Fernandes
2024-01-25 17:15:00 +00:00
parent 1994e1940c
commit 5c819f75e5

View File

@@ -501,7 +501,10 @@ test_exhaustive (void)
g_strv_builder_unref (builder);
j = g_test_rand_int_range (0, source_size + 1);
gtk_string_list_splice (GTK_STRING_LIST (source), j, 0, (const char * const *) inclusion);
gtk_string_list_splice (GTK_STRING_LIST (source),
j,
g_test_rand_bit () ? 0 : g_test_rand_int_range (0, source_size - j + 1),
(const char * const *) inclusion);
g_strfreev (inclusion);
if (g_test_verbose ())