From 1a007f2d16b42a897b972fde190f49d9e1c0efc5 Mon Sep 17 00:00:00 2001 From: Egor Larionov Date: Mon, 10 Aug 2020 13:22:45 -0700 Subject: [PATCH] Revert look_at test changes Previously look_at functions were erroneously renamed to look_to_{lh|rh} as a response to deprecation warnings. Instead what should've happened is that `allow(deprecated)` annotations are fixed to suppress tests that verify that deprecated functions are working. This commit reintroduced the tests for deprecated functions and suppresses the deprecation warnings. --- tests/matrix.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/matrix.rs b/tests/matrix.rs index cd371aea..fe79de21 100644 --- a/tests/matrix.rs +++ b/tests/matrix.rs @@ -740,7 +740,9 @@ pub mod matrix3 { ])); #[allow(deprecated)] - assert_ulps_eq!(m, Matrix3::look_to_lh(dir, up)); + { + assert_ulps_eq!(m, Matrix3::look_at(dir, up)); + } } #[test] @@ -1164,7 +1166,9 @@ pub mod matrix4 { let m = Matrix4::look_to_rh(eye, dir, up); #[allow(deprecated)] - assert_ulps_eq!(m, Matrix4::look_to_rh(eye, dir, up)); + { + assert_ulps_eq!(m, Matrix4::look_at_dir(eye, dir, up)); + } let expected = Matrix4::from([ [-0.9486833, -0.16903086, -0.26726127, 0.0],