MCPcopy Index your code
hub / github.com/numpy/numpy / test_len

Method test_len

numpy/_core/tests/test_defchararray.py:243–247  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

241 .view(np.char.chararray)
242
243 def test_len(self):
244 A, B = self.A(), self.B()
245 assert_(issubclass(np.char.str_len(A).dtype.type, np.integer))
246 assert_array_equal(np.char.str_len(A), [[5, 0], [5, 9], [12, 5]])
247 assert_array_equal(np.char.str_len(B), [[3, 0], [5, 9], [12, 5]])
248
249 def test_count(self):
250 A, B = self.A(), self.B()

Callers

nothing calls this directly

Calls 4

AMethod · 0.95
BMethod · 0.95
assert_Function · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected