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

Method test_object_argmax

numpy/core/tests/test_regression.py:669–671  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

667 assert_equal(a[np.where(a == 3)], a2[np.where(a2 == 3)])
668
669 def test_object_argmax(self):
670 a = np.array([1, 2, 3], dtype=object)
671 assert_(a.argmax() == 2)
672
673 def test_recarray_fields(self):
674 # Ticket #372

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
argmaxMethod · 0.45

Tested by

no test coverage detected