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

Method test_lower

numpy/core/tests/test_defchararray.py:390–401  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

388 assert_array_equal(C, tgt)
389
390 def test_lower(self):
391 tgt = [[b' abc ', b''],
392 [b'12345', b'mixedcase'],
393 [b'123 \t 345 \0 ', b'upper']]
394 assert_(issubclass(self.A.lower().dtype.type, np.bytes_))
395 assert_array_equal(self.A.lower(), tgt)
396
397 tgt = [[' \u03c3 ', ''],
398 ['12345', 'mixedcase'],
399 ['123 \t 345 \0 ', 'upper']]
400 assert_(issubclass(self.B.lower().dtype.type, np.str_))
401 assert_array_equal(self.B.lower(), tgt)
402
403 def test_lstrip(self):
404 tgt = [[b'abc ', b''],

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
assert_array_equalFunction · 0.90
lowerMethod · 0.80

Tested by

no test coverage detected