(self)
| 359 | assert_(T[2, 0] == b'123 345 \0') |
| 360 | |
| 361 | def test_join(self): |
| 362 | # NOTE: list(b'123') == [49, 50, 51] |
| 363 | # so that b','.join(b'123') results to an error on Py3 |
| 364 | A0 = self.A.decode('ascii') |
| 365 | |
| 366 | A = np.char.join([',', '#'], A0) |
| 367 | assert_(issubclass(A.dtype.type, np.str_)) |
| 368 | tgt = np.array([[' ,a,b,c, ', ''], |
| 369 | ['1,2,3,4,5', 'M#i#x#e#d#C#a#s#e'], |
| 370 | ['1,2,3, ,\t, ,3,4,5, ,\x00, ', 'U#P#P#E#R']]) |
| 371 | assert_array_equal(np.char.join([',', '#'], A0), tgt) |
| 372 | |
| 373 | def test_ljust(self): |
| 374 | assert_(issubclass(self.A.ljust(10).dtype.type, np.bytes_)) |
nothing calls this directly
no test coverage detected