(self)
| 348 | assert_array_equal(A.rfind(['1', 'P']), [[-1, -1], [0, -1], [0, 2]]) |
| 349 | |
| 350 | def test_rindex(self): |
| 351 | A = self.A() |
| 352 | |
| 353 | def fail(): |
| 354 | A.rindex('a') |
| 355 | |
| 356 | assert_raises(ValueError, fail) |
| 357 | assert_(np.char.rindex('abcba', 'b') == 3) |
| 358 | assert_(issubclass(np.char.rindex('abcba', 'b').dtype.type, np.integer)) |
| 359 | |
| 360 | def test_startswith(self): |
| 361 | A = self.A() |
nothing calls this directly
no test coverage detected