From d43cf2feeb4845db59d1ab14096d3126ba107283 Mon Sep 17 00:00:00 2001 From: Matthew Gordon Date: Fri, 21 Mar 2025 20:59:35 -0300 Subject: [PATCH] Fix typo in test --- src/camera.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/camera.rs b/src/camera.rs index 5665cdb..58ce93d 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -175,10 +175,10 @@ mod tests { }; let expected_x: f64 = ImageSampler::scale(200, 800, target.film_width) - target.film_width * 0.5; - assert!((point_on_film_plane.x() - expected_x).abs() < 0.5 / 200.0); + assert!((point_on_film_plane.x() - expected_x).abs() < 0.5 / 800.0); let expected_y = -ImageSampler::scale(100, 600, target.film_height) + target.film_height * 0.5; - assert!((point_on_film_plane.y() - expected_y).abs() < 0.5 / 800.0); + assert!((point_on_film_plane.y() - expected_y).abs() < 0.5 / 600.0); } } }