MCPcopy Create free account
hub / github.com/numpy/numpy / test_sort_unsigned

Method test_sort_unsigned

numpy/core/tests/test_multiarray.py:2049–2059  ·  view source on GitHub ↗
(self, dtype)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
sortMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected