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

Method test_ljust

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

Source from the content-addressed store, hash-verified

887 ('abc', 10, '*', 'abc*******'),
888 ])
889 def test_ljust(self, buf, width, fillchar, res, dt):
890 buf = np.array(buf, dtype=dt)
891 fillchar = np.array(fillchar, dtype=dt)
892 res = np.array(res, dtype=dt)
893 assert_array_equal(np.strings.ljust(buf, width, fillchar), res)
894
895 @pytest.mark.parametrize("buf,width,fillchar,res", [
896 ('abc', 10, ' ', ' abc'),

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
ljustMethod · 0.80

Tested by

no test coverage detected