(self)
| 436 | assert_array_equal(R, tgt) |
| 437 | |
| 438 | def test_rjust(self): |
| 439 | assert_(issubclass(self.A.rjust(10).dtype.type, np.bytes_)) |
| 440 | |
| 441 | C = self.A.rjust([10, 20]) |
| 442 | assert_array_equal(np.char.str_len(C), [[10, 20], [10, 20], [12, 20]]) |
| 443 | |
| 444 | C = self.A.rjust(20, b'#') |
| 445 | assert_(np.all(C.startswith(b'#'))) |
| 446 | assert_array_equal(C.endswith(b'#'), |
| 447 | [[False, True], [False, False], [False, False]]) |
| 448 | |
| 449 | C = np.char.rjust(b'FOO', [[10, 20], [15, 8]]) |
| 450 | tgt = [[b' FOO', b' FOO'], |
| 451 | [b' FOO', b' FOO']] |
| 452 | assert_(issubclass(C.dtype.type, np.bytes_)) |
| 453 | assert_array_equal(C, tgt) |
| 454 | |
| 455 | def test_rpartition(self): |
| 456 | P = self.A.rpartition([b'3', b'M']) |
nothing calls this directly
no test coverage detected