MCPcopy Index your code
hub / github.com/numpy/numpy / test_empty_argpartition

Method test_empty_argpartition

numpy/_core/tests/test_item_selection.py:95–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 assert_array_equal(a[indices], out)
94
95 def test_empty_argpartition(self):
96 # In reference to github issue #6530
97 a = np.array([0, 2, 4, 6, 8, 10])
98 a = a.argpartition(np.array([], dtype=np.int16))
99
100 b = np.array([0, 1, 2, 3, 4, 5])
101 assert_array_equal(a, b)
102
103
104class TestPutMask:

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
argpartitionMethod · 0.80

Tested by

no test coverage detected