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

Method test_rjust

numpy/_core/tests/test_strings.py:903–907  ·  view source on GitHub ↗
(self, buf, width, fillchar, res, dt)

Source from the content-addressed store, hash-verified

901 ('abc', 10, '*', '*******abc'),
902 ])
903 def test_rjust(self, buf, width, fillchar, res, dt):
904 buf = np.array(buf, dtype=dt)
905 fillchar = np.array(fillchar, dtype=dt)
906 res = np.array(res, dtype=dt)
907 assert_array_equal(np.strings.rjust(buf, width, fillchar), res)
908
909 @pytest.mark.parametrize("buf,width,res", [
910 ('123', 2, '123'),

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
rjustMethod · 0.80

Tested by

no test coverage detected