mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-06 12:25:03 +00:00
test: fix fuzz test err
This commit is contained in:
parent
bd4060c591
commit
a0a7dc1080
1 changed files with 6 additions and 4 deletions
|
@ -156,10 +156,12 @@ impl Actionable for Vec<LoroCore> {
|
||||||
text.delete(&txn, *pos, *len).unwrap();
|
text.delete(&txn, *pos, *len).unwrap();
|
||||||
}
|
}
|
||||||
Action::Sync { from, to } => {
|
Action::Sync { from, to } => {
|
||||||
let (from, to) = arref::array_mut_ref!(self, [*from as usize, *to as usize]);
|
if from != to {
|
||||||
let to_vv = to.vv_cloned();
|
let (from, to) = arref::array_mut_ref!(self, [*from as usize, *to as usize]);
|
||||||
let from_exported = from.export(to_vv);
|
let to_vv = to.vv_cloned();
|
||||||
to.import(from_exported);
|
let from_exported = from.export(to_vv);
|
||||||
|
to.import(from_exported);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Action::SyncAll => {
|
Action::SyncAll => {
|
||||||
for i in 1..self.len() {
|
for i in 1..self.len() {
|
||||||
|
|
Loading…
Reference in a new issue