Use anchor_after in randomized tests to match BlockMap

This commit is contained in:
Antonio Scandurra 2021-11-19 18:04:31 +01:00
parent c844fcdc09
commit 6f5ca6064b

View file

@ -1340,7 +1340,7 @@ mod tests {
let block_properties = (0..block_count)
.map(|_| {
let buffer = buffer.read(cx);
let position = buffer.anchor_before(
let position = buffer.anchor_after(
buffer.clip_offset(rng.gen_range(0..=buffer.len()), Bias::Left),
);