(self)
| 358 | assert_(issubclass(np.char.rindex('abcba', 'b').dtype.type, np.integer)) |
| 359 | |
| 360 | def test_startswith(self): |
| 361 | A = self.A() |
| 362 | assert_(issubclass(A.startswith('').dtype.type, np.bool)) |
| 363 | assert_array_equal(A.startswith(' '), [[1, 0], [0, 0], [0, 0]]) |
| 364 | assert_array_equal(A.startswith('1', 0, 3), [[0, 0], [1, 0], [1, 0]]) |
| 365 | |
| 366 | def fail(): |
| 367 | A.startswith('3', 'fdjk') |
| 368 | |
| 369 | assert_raises(TypeError, fail) |
| 370 | |
| 371 | @ignore_charray_deprecation |
| 372 | class TestMethods: |
nothing calls this directly
no test coverage detected