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

Method test_zfill

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

Source from the content-addressed store, hash-verified

923 ('0034', 4, '0034'),
924 ])
925 def test_zfill(self, buf, width, res, dt):
926 buf = np.array(buf, dtype=dt)
927 res = np.array(res, dtype=dt)
928 assert_array_equal(np.strings.zfill(buf, width), res)
929
930 @pytest.mark.parametrize("buf,sep,res1,res2,res3", [
931 ("this is the partition method", "ti", "this is the par",

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
zfillMethod · 0.80

Tested by

no test coverage detected