MCPcopy Create free account
hub / github.com/numpy/numpy / test_fromstring

Method test_fromstring

numpy/core/tests/test_regression.py:861–863  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

859 assert_equal(np.binary_repr(0, width=3), '000')
860
861 def test_fromstring(self):
862 assert_equal(np.fromstring("12:09:09", dtype=int, sep=":"),
863 [12, 9, 9])
864
865 def test_searchsorted_variable_length(self):
866 x = np.array(['a', 'aa', 'b'])

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
fromstringMethod · 0.80

Tested by

no test coverage detected