MCPcopy Index your code
hub / github.com/numpy/numpy / test_chararray_rstrip

Method test_chararray_rstrip

numpy/_core/tests/test_regression.py:397–402  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

395 assert_raises(IndexError, index_tmp)
396
397 def test_chararray_rstrip(self):
398 # Ticket #222
399 x = np.char.chararray((1,), 5)
400 x[0] = b'a '
401 x = x.rstrip()
402 assert_equal(x[0], b'a')
403
404 def test_object_array_shape(self):
405 # Ticket #239

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
rstripMethod · 0.80

Tested by

no test coverage detected