From 9dffc5bdea6be248b8234c920f3eae5f6610d642 Mon Sep 17 00:00:00 2001 From: Owen Brooks Date: Wed, 15 Jun 2022 20:15:00 +1000 Subject: [PATCH] Fix Matrix Debug test to match new format --- tests/core/matrix.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/core/matrix.rs b/tests/core/matrix.rs index 8a545e97..5aec8302 100644 --- a/tests/core/matrix.rs +++ b/tests/core/matrix.rs @@ -78,16 +78,14 @@ fn iter() { } #[test] -fn debug_output_corresponds_to_data_container() { +fn debug_output_semicolon_delimited_rowwise() { let m = Matrix2::new(1.0, 2.0, 3.0, 4.0); - let output_stable = "[[1, 3], [2, 4]]"; // Current output on the stable channel. - let output_nightly = "[[1.0, 3.0], [2.0, 4.0]]"; // Current output on the nightly channel. + let expected_output = "[1.0, 2.0; 3.0, 4.0]"; // Current output on the nightly channel. let current_output = format!("{:?}", m); - dbg!(output_stable); - dbg!(output_nightly); + dbg!(expected_output); dbg!(¤t_output); - assert!(current_output == output_stable || current_output == output_nightly); + assert!(current_output == expected_output); } #[test]