(self)
| 289 | assert_array_equal(self.A.rfind(['1', 'P']), [[-1, -1], [0, -1], [0, 2]]) |
| 290 | |
| 291 | def test_rindex(self): |
| 292 | |
| 293 | def fail(): |
| 294 | self.A.rindex('a') |
| 295 | |
| 296 | assert_raises(ValueError, fail) |
| 297 | assert_(np.char.rindex('abcba', 'b') == 3) |
| 298 | assert_(issubclass(np.char.rindex('abcba', 'b').dtype.type, np.integer)) |
| 299 | |
| 300 | def test_startswith(self): |
| 301 | assert_(issubclass(self.A.startswith('').dtype.type, np.bool_)) |
nothing calls this directly
no test coverage detected