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

Method foo

numpy/testing/tests/test_utils.py:72–79  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

70 def test_generic_rank1(self):
71 """Test rank 1 array for all dtypes."""
72 def foo(t):
73 a = np.empty(2, t)
74 a.fill(1)
75 b = a.copy()
76 c = a.copy()
77 c.fill(0)
78 self._test_equal(a, b)
79 self._test_not_equal(c, b)
80
81 # Test numeric types and object
82 for t in '?bhilqpBHILQPfdgFDG':

Callers

nothing calls this directly

Calls 3

_test_equalMethod · 0.80
_test_not_equalMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected