Fix issue in string_previous

This commit is contained in:
Patrick Pelissier committed 2022-09-11 23:14:52 +02:00
1 parent d8142a9764
commit d7b45cc220
2 files changed
+2

No files matched your search

+1
View File
@@ -1842,6 +1842,7 @@ m_string_previous(m_string_it_t it)
bool b = m_string_end_p(it);
M_ASSERT(!b);
(void) b;
return;
}
}
/* We reach the start of the string: mark the iterator to the end */
+1
View File
@@ -119,6 +119,7 @@ static void test_utf8_it(void)
i--;
assert (string_get_cref(it) == tab[i]);
}
assert(i == 0);
string_set_str (s, "H€llo René Chaînôr¬");
assert(string_length_u(s) == 19);