MCPcopy
hub / github.com/numpy/numpy / test_argsort

Method test_argsort

numpy/ma/tests/test_core.py:3837–3840  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3835 test = sort(a, endwith=False)
3836
3837 def test_argsort(self):
3838 # Test argsort
3839 a = array([1, 5, 2, 4, 3], mask=[1, 0, 0, 1, 0])
3840 assert_equal(np.argsort(a), argsort(a))
3841
3842 def test_sort_stable_or_descending_throws(self):
3843 a = array([1, 5, 2, 4, 3], mask=[1, 0, 0, 1, 0])

Callers

nothing calls this directly

Calls 4

arrayFunction · 0.90
assert_equalFunction · 0.90
argsortFunction · 0.90
argsortMethod · 0.45

Tested by

no test coverage detected