test: fix fuzz test config

This commit is contained in:
Zixuan Chen 2023-12-26 18:09:55 +08:00
parent 9477717e3e
commit 6a2d0f8fef
No known key found for this signature in database

View file

@ -290,7 +290,7 @@ impl Actionable for Vec<LoroDoc> {
*site %= self.len() as u8;
let app_state = &mut self[*site as usize].app_state().lock().unwrap();
let text = app_state.get_text("text").unwrap();
if text.is_empty() {
if text.len_unicode() == 0 {
*len = 0;
*pos = 0;
} else {