From 700461010637be143eb10133c763d7a59b9043da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sat, 3 Feb 2018 11:11:10 +0100 Subject: [PATCH] Adapt the debug_output_corresponds_to_data_container test to work on both stable and nightly. For some reasons the formating of floats seem to have changed. --- tests/core/matrix.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/core/matrix.rs b/tests/core/matrix.rs index e20e14c0..eceb71ad 100644 --- a/tests/core/matrix.rs +++ b/tests/core/matrix.rs @@ -59,9 +59,9 @@ fn iter() { #[test] fn debug_output_corresponds_to_data_container() { - assert_eq!( - format!("{:?}", Matrix2::new(1.0, 2.0, 3.0, 4.0)), - "Matrix { data: [1.0, 3.0, 2.0, 4.0] }" + assert!( + format!("{:?}", Matrix2::new(1.0, 2.0, 3.0, 4.0)) == "Matrix { data: [1, 3, 2, 4] }" || // Current output on the stable chanel. + format!("{:?}", Matrix2::new(1.0, 2.0, 3.0, 4.0)) == "Matrix { data: [1.0, 3.0, 2.0, 4.0] }" // Current output on the nightyl chanel. ); }