mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
testsuite/gtk/textiter: Add missing assertion
gboolean ret for whether gtk_text_iter_backward_line() moved the iter was declared but not used anywhere. I presume it was meant to be checked, and it passes now, so let’s do it.
This commit is contained in:
parent
75b0431dcf
commit
397bced61b
@ -772,7 +772,8 @@ test_backward_line (void)
|
||||
and move &iter to start of the line, or return FALSE if &iter
|
||||
was already at start of the line, so in both cases &iter should
|
||||
be at the start of the line, so check that */
|
||||
gtk_text_iter_backward_line (&iter);
|
||||
ret = gtk_text_iter_backward_line (&iter);
|
||||
g_assert_true (ret);
|
||||
offset = gtk_text_iter_get_line_offset (&iter);
|
||||
g_assert_cmpint (offset, ==, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user