Use anchor_after
in randomized tests to match BlockMap
This commit is contained in:
parent
c844fcdc09
commit
6f5ca6064b
1 changed files with 1 additions and 1 deletions
|
@ -1340,7 +1340,7 @@ mod tests {
|
||||||
let block_properties = (0..block_count)
|
let block_properties = (0..block_count)
|
||||||
.map(|_| {
|
.map(|_| {
|
||||||
let buffer = buffer.read(cx);
|
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),
|
buffer.clip_offset(rng.gen_range(0..=buffer.len()), Bias::Left),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue