Skip to content

Commit

Permalink
Convert format tests to use into_shape_clone
Browse files Browse the repository at this point in the history
  • Loading branch information
bluss committed Feb 26, 2024
1 parent 728794a commit 62db054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fn formatting() {
let a = rcarr1::<f32>(&[1., 2., 3., 4.]);
assert_eq!(format!("{}", a), "[1, 2, 3, 4]");
assert_eq!(format!("{:4}", a), "[ 1, 2, 3, 4]");
let a = a.reshape((4, 1, 1));
let a = a.into_shape_clone((4, 1, 1)).unwrap();
assert_eq!(
format!("{}", a),
"\
Expand All @@ -30,7 +30,7 @@ fn formatting() {
[[ 4]]]",
);

let a = a.reshape((2, 2));
let a = a.into_shape_clone((2, 2)).unwrap();
assert_eq!(
format!("{}", a),
"\
Expand Down

0 comments on commit 62db054

Please sign in to comment.