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.
This commit is contained in:
Sébastien Crozet 2018-02-03 11:11:10 +01:00
parent daba16023a
commit 7004610106

View File

@ -59,9 +59,9 @@ fn iter() {
#[test] #[test]
fn debug_output_corresponds_to_data_container() { fn debug_output_corresponds_to_data_container() {
assert_eq!( assert!(
format!("{:?}", Matrix2::new(1.0, 2.0, 3.0, 4.0)), format!("{:?}", Matrix2::new(1.0, 2.0, 3.0, 4.0)) == "Matrix { data: [1, 3, 2, 4] }" || // Current output on the stable chanel.
"Matrix { data: [1.0, 3.0, 2.0, 4.0] }" 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.
); );
} }