Skip to content

Commit 62db054

Browse files
committed
Convert format tests to use into_shape_clone
1 parent 728794a commit 62db054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn formatting() {
66
let a = rcarr1::<f32>(&[1., 2., 3., 4.]);
77
assert_eq!(format!("{}", a), "[1, 2, 3, 4]");
88
assert_eq!(format!("{:4}", a), "[ 1, 2, 3, 4]");
9-
let a = a.reshape((4, 1, 1));
9+
let a = a.into_shape_clone((4, 1, 1)).unwrap();
1010
assert_eq!(
1111
format!("{}", a),
1212
"\
@@ -30,7 +30,7 @@ fn formatting() {
3030
[[ 4]]]",
3131
);
3232

33-
let a = a.reshape((2, 2));
33+
let a = a.into_shape_clone((2, 2)).unwrap();
3434
assert_eq!(
3535
format!("{}", a),
3636
"\

0 commit comments

Comments
 (0)