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:
Daniel Boles 2017-02-18 20:18:05 +00:00
parent 75b0431dcf
commit 397bced61b

View File

@ -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);