pub fn assert_approx_eq(actual: f32, expected: f32, tolerance: f32, msg: &str)
Assert that a value is within an expected range.
This is useful for fuzzy matching of positions and sizes that might vary slightly due to rendering.