Skip to content

Commit 31c7d4f

Browse files
committed
Remove workaround for ndarray issue #361
1 parent 1b77e5c commit 31c7d4f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/solve.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,7 @@ fn det_nonsquare() {
131131
}
132132
}
133133
for &dims in &[(1, 0), (1, 2), (2, 1), (2, 3)] {
134-
// Work around bug in ndarray: https://github.com/bluss/rust-ndarray/issues/361
135-
let shapes = if dims == (1, 0) {
136-
vec![dims.clone().into_shape()]
137-
} else {
138-
vec![dims.clone().into_shape(), dims.clone().f()]
139-
};
140-
for &shape in &shapes {
134+
for &shape in &[dims.clone().into_shape(), dims.clone().f()] {
141135
det_nonsquare!(f64, shape);
142136
det_nonsquare!(f32, shape);
143137
det_nonsquare!(c64, shape);

0 commit comments

Comments
 (0)