Test everything is ok with empty results, even with inserted dims
(self)
| 76 | assert_raises(ValueError, take_along_axis, a, ai, axis=None) |
| 77 | |
| 78 | def test_empty(self): |
| 79 | """ Test everything is ok with empty results, even with inserted dims """ |
| 80 | a = np.ones((3, 4, 5)) |
| 81 | ai = np.ones((3, 0, 5), dtype=np.intp) |
| 82 | |
| 83 | actual = take_along_axis(a, ai, axis=1) |
| 84 | assert_equal(actual.shape, ai.shape) |
| 85 | |
| 86 | def test_broadcast(self): |
| 87 | """ Test that non-indexing dimensions are broadcast in both directions """ |
nothing calls this directly
no test coverage detected