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

Method test_ljust

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

Source from the content-addressed store, hash-verified

1218 ('x', 4, '\U0001044E', 'x\U0001044E\U0001044E\U0001044E'),
1219 ])
1220 def test_ljust(self, buf, width, fillchar, res, dt):
1221 buf = np.array(buf, dtype=dt)
1222 fillchar = np.array(fillchar, dtype=dt)
1223 res = np.array(res, dtype=dt)
1224 assert_array_equal(np.strings.ljust(buf, width, fillchar), res)
1225
1226 @pytest.mark.parametrize("buf,width,fillchar,res", [
1227 ('x', 2, '\U0001044E', '\U0001044Ex'),

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
ljustMethod · 0.80

Tested by

no test coverage detected