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

Method test_lower

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

Source from the content-addressed store, hash-verified

455 assert_array_equal(C, tgt)
456
457 def test_lower(self):
458 A, B = self.A(), self.B()
459 tgt = [[b' abc ', b''],
460 [b'12345', b'mixedcase'],
461 [b'123 \t 345 \0 ', b'upper']]
462 assert_(issubclass(A.lower().dtype.type, np.bytes_))
463 assert_array_equal(A.lower(), tgt)
464
465 tgt = [[' \u03c3 ', ''],
466 ['12345', 'mixedcase'],
467 ['123 \t 345 \0 ', 'upper']]
468 assert_(issubclass(B.lower().dtype.type, np.str_))
469 assert_array_equal(B.lower(), tgt)
470
471 def test_lstrip(self):
472 A, B = self.A(), self.B()

Callers

nothing calls this directly

Calls 5

AMethod · 0.95
BMethod · 0.95
assert_Function · 0.90
assert_array_equalFunction · 0.90
lowerMethod · 0.80

Tested by

no test coverage detected