(self, ndim)
| 1485 | |
| 1486 | @pytest.mark.parametrize("ndim", (0, 1, 2, 3, 10)) |
| 1487 | def test_nd_basic(self, ndim): |
| 1488 | a = np.ones((2,) * ndim) |
| 1489 | b = np.pad(a, (2, 1), mode="constant", constant_values=0) |
| 1490 | res = trim_zeros(b, axis=None) |
| 1491 | assert_array_equal(a, res) |
| 1492 | |
| 1493 | @pytest.mark.parametrize("ndim", (0, 1, 2, 3)) |
| 1494 | def test_allzero(self, ndim): |
nothing calls this directly
no test coverage detected