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

Method test_empty_argpartition

numpy/core/tests/test_item_selection.py:82–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 assert_array_equal(a, a_original)
81
82 def test_empty_argpartition(self):
83 # In reference to github issue #6530
84 a = np.array([0, 2, 4, 6, 8, 10])
85 a = a.argpartition(np.array([], dtype=np.int16))
86
87 b = np.array([0, 1, 2, 3, 4, 5])
88 assert_array_equal(a, b)
89
90
91class TestPutMask:

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
argpartitionMethod · 0.80

Tested by

no test coverage detected