+
+ g_sequence_free (seq);
+}
+
+static void
+test_iter_move (void)
+{
+ GSequence *seq = g_sequence_new (NULL);
+ GSequenceIter *iter;
+ gint i;
+
+ for (i = 0; i < 10; ++i)
+ g_sequence_append (seq, GINT_TO_POINTER (i));
+
+ iter = g_sequence_get_begin_iter (seq);
+ iter = g_sequence_iter_move (iter, 5);
+ g_assert_cmpint (GPOINTER_TO_INT (g_sequence_get (iter)), ==, 5);
+
+ iter = g_sequence_iter_move (iter, -10);
+ g_assert (g_sequence_iter_is_begin (iter));
+
+ iter = g_sequence_get_end_iter (seq);
+ iter = g_sequence_iter_move (iter, -5);
+ g_assert_cmpint (GPOINTER_TO_INT (g_sequence_get (iter)), ==, 5);
+
+ iter = g_sequence_iter_move (iter, 10);
+ g_assert (g_sequence_iter_is_end (iter));
+
+ g_sequence_free (seq);