Fix Matrix Debug test to match new format
This commit is contained in:
parent
97e2a8ff44
commit
9dffc5bdea
|
@ -78,16 +78,14 @@ fn iter() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[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 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 expected_output = "[1.0, 2.0; 3.0, 4.0]"; // Current output on the nightly channel.
|
||||||
let output_nightly = "[[1.0, 3.0], [2.0, 4.0]]"; // Current output on the nightly channel.
|
|
||||||
let current_output = format!("{:?}", m);
|
let current_output = format!("{:?}", m);
|
||||||
dbg!(output_stable);
|
dbg!(expected_output);
|
||||||
dbg!(output_nightly);
|
|
||||||
dbg!(¤t_output);
|
dbg!(¤t_output);
|
||||||
|
|
||||||
assert!(current_output == output_stable || current_output == output_nightly);
|
assert!(current_output == expected_output);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue