(self, dtype)
| 2047 | np.float16, np.float32, np.float64, |
| 2048 | np.longdouble]) |
| 2049 | def test_sort_unsigned(self, dtype): |
| 2050 | a = np.arange(101, dtype=dtype) |
| 2051 | b = a[::-1].copy() |
| 2052 | for kind in self.sort_kinds: |
| 2053 | msg = "scalar sort, kind=%s" % kind |
| 2054 | c = a.copy() |
| 2055 | c.sort(kind=kind) |
| 2056 | assert_equal(c, a, msg) |
| 2057 | c = b.copy() |
| 2058 | c.sort(kind=kind) |
| 2059 | assert_equal(c, a, msg) |
| 2060 | |
| 2061 | @pytest.mark.parametrize('dtype', |
| 2062 | [np.int8, np.int16, np.int32, np.int64, np.float16, |
nothing calls this directly
no test coverage detected