(self, ndim)
| 1492 | |
| 1493 | @pytest.mark.parametrize("ndim", (0, 1, 2, 3)) |
| 1494 | def test_allzero(self, ndim): |
| 1495 | a = np.zeros((3,) * ndim) |
| 1496 | res = trim_zeros(a, axis=None) |
| 1497 | assert_array_equal(res, np.zeros((0,) * ndim)) |
| 1498 | |
| 1499 | def test_trim_arg(self): |
| 1500 | a = np.array([0, 1, 2, 0]) |
nothing calls this directly
no test coverage detected