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

Method test_upper

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

Source from the content-addressed store, hash-verified

669 assert_array_equal(B.title(), tgt)
670
671 def test_upper(self):
672 A, B = self.A(), self.B()
673 tgt = [[b' ABC ', b''],
674 [b'12345', b'MIXEDCASE'],
675 [b'123 \t 345 \0 ', b'UPPER']]
676 assert_(issubclass(A.upper().dtype.type, np.bytes_))
677 assert_array_equal(A.upper(), tgt)
678
679 tgt = [[' \u03a3 ', ''],
680 ['12345', 'MIXEDCASE'],
681 ['123 \t 345 \0 ', 'UPPER']]
682 assert_(issubclass(B.upper().dtype.type, np.str_))
683 assert_array_equal(B.upper(), tgt)
684
685 def test_isnumeric(self):
686 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
upperMethod · 0.80

Tested by

no test coverage detected