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

Method test_expandtabs

numpy/_core/tests/test_strings.py:823–826  ·  view source on GitHub ↗
(self, buf, tabsize, res, dt)

Source from the content-addressed store, hash-verified

821 (" \ta\n\tb", 1, " a\n b"),
822 ])
823 def test_expandtabs(self, buf, tabsize, res, dt):
824 buf = np.array(buf, dtype=dt)
825 res = np.array(res, dtype=dt)
826 assert_array_equal(np.strings.expandtabs(buf, tabsize), res)
827
828 def test_expandtabs_raises_overflow(self, dt):
829 with pytest.raises(OverflowError, match="new string is too long"):

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
expandtabsMethod · 0.80

Tested by

no test coverage detected