(self)
| 489 | assert_array_equal(self.B.rstrip(), tgt) |
| 490 | |
| 491 | def test_strip(self): |
| 492 | tgt = [[b'abc', b''], |
| 493 | [b'12345', b'MixedCase'], |
| 494 | [b'123 \t 345', b'UPPER']] |
| 495 | assert_(issubclass(self.A.strip().dtype.type, np.bytes_)) |
| 496 | assert_array_equal(self.A.strip(), tgt) |
| 497 | |
| 498 | tgt = [[b' abc ', b''], |
| 499 | [b'234', b'ixedCas'], |
| 500 | [b'23 \t 345 \x00', b'UPP']] |
| 501 | assert_array_equal(self.A.strip([b'15', b'EReM']), tgt) |
| 502 | |
| 503 | tgt = [['\u03a3', ''], |
| 504 | ['12345', 'MixedCase'], |
| 505 | ['123 \t 345', 'UPPER']] |
| 506 | assert_(issubclass(self.B.strip().dtype.type, np.str_)) |
| 507 | assert_array_equal(self.B.strip(), tgt) |
| 508 | |
| 509 | def test_split(self): |
| 510 | A = self.A.split(b'3') |
nothing calls this directly
no test coverage detected