From 9a51f7e1741fea26c5ce4dd7fba160afbf75c10b Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 16 Nov 2026 12:49:31 +0000 Subject: [PATCH] merge-c: 1.3: the equilateral trial compares the apex within a tolerance --- crates/draw/tests/it/shape_drag.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/draw/tests/it/shape_drag.rs b/crates/draw/tests/it/shape_drag.rs index 358263fc7..8fb8dc770 100644 --- a/crates/draw/tests/it/shape_drag.rs +++ b/crates/draw/tests/it/shape_drag.rs @@ -220,7 +220,7 @@ fn a_triangle_fills_its_box_and_shift_makes_it_equilateral() { assert!(equal.len() >= 3, "a triangle: {equal:?}"); let sides = [(equal[0] - equal[1]).hypot(), (equal[1] - equal[2]).hypot(), (equal[2] - equal[0]).hypot()]; assert!(sides.iter().all(|side| (side - 20.0 * 3f64.sqrt()).abs() < 1e-9), "three equal sides in the 40 px square's circle: {sides:?}"); - assert_eq!(equal[0], Point::new(120.0, 100.0), "the apex is the top of the circle"); + assert!((equal[0] - Point::new(120.0, 100.0)).hypot() < 1e-9, "the apex is the top of the circle, got {:?}", equal[0]); shapes.drag(PRESS, to, Modifiers::SHIFT | Modifiers::ALT); let centred = corners(shapes.committed());