Test that an off-screen edit cursor lands on its fixed column

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon ThomasandClaude Opus 5.5 committed 2026-11-03 09:53:19 -05:00
1 parent 4b06407dae
commit f86b077cdf
1 file changed
+1 -1
+1 -1
View File
@@ -202,7 +202,7 @@ mod tests {
e.execute("view.zoom_in", &json!({})).unwrap();
let (spp, scroll) = view(&e);
let x = (1_000_000.0 - scroll as f64) / spp;
assert!((0.0..2000.0).contains(&x), "cursor at {x}px");
assert!((x - OFFSCREEN_CURSOR_PX).abs() < 1.0, "cursor at {x}px");
}
#[test]