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

Method test_rjust

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

Source from the content-addressed store, hash-verified

1229 ('x', 4, '\U0001044E', '\U0001044E\U0001044E\U0001044Ex'),
1230 ])
1231 def test_rjust(self, buf, width, fillchar, res, dt):
1232 buf = np.array(buf, dtype=dt)
1233 fillchar = np.array(fillchar, dtype=dt)
1234 res = np.array(res, dtype=dt)
1235 assert_array_equal(np.strings.rjust(buf, width, fillchar), res)
1236
1237 @pytest.mark.parametrize("buf,sep,res1,res2,res3", [
1238 ("āāāāĀĀĀĀ", "Ă", "āāāāĀĀĀĀ", "", ""),

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
rjustMethod · 0.80

Tested by

no test coverage detected