Add and remove excerpts in randomized FoldMap and WrapMap tests

This commit is contained in:
Max Brunsfeld 2022-02-09 14:43:24 -08:00
parent 5b4c0d64bc
commit 1ee15e1a59
2 changed files with 18 additions and 10 deletions

View file

@ -1107,7 +1107,7 @@ mod tests {
buffer.update(&mut cx, |buffer, cx| {
let subscription = buffer.subscribe();
let edit_count = rng.gen_range(1..=5);
buffer.randomly_edit(&mut rng, edit_count, cx);
buffer.randomly_mutate(&mut rng, edit_count, cx);
buffer_snapshot = buffer.snapshot(cx);
buffer_edits.extend(subscription.consume());
});