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

Method test_values

numpy/core/tests/test_numeric.py:1206–1211  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1204 self.makegen(), int, len(expected) + 10)
1205
1206 def test_values(self):
1207 expected = np.array(list(self.makegen()))
1208 a = np.fromiter(self.makegen(), int)
1209 a20 = np.fromiter(self.makegen(), int, 20)
1210 assert_(np.all(a == expected, axis=0))
1211 assert_(np.all(a20 == expected[:20], axis=0))
1212
1213 def load_data(self, n, eindex):
1214 # Utility method for the issue 2592 tests.

Callers

nothing calls this directly

Calls 3

makegenMethod · 0.95
assert_Function · 0.90
allMethod · 0.45

Tested by

no test coverage detected