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

Method test_roundtrip_repr

numpy/_core/tests/test_multiarray.py:6194–6199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6192 assert_array_equal(x[~nan_mask], y[~nan_mask])
6193
6194 def test_roundtrip_repr(self):
6195 x = self._create_data()
6196 x = x.real.ravel()
6197 s = "@".join(repr(x)[11:-1] for x in x)
6198 y = np.fromstring(s, sep="@")
6199 assert_array_equal(x, y)
6200
6201 def test_unseekable_fromfile(self, tmp_path, param_filename):
6202 # gh-6246

Callers

nothing calls this directly

Calls 5

_create_dataMethod · 0.95
assert_array_equalFunction · 0.90
joinMethod · 0.80
fromstringMethod · 0.80
ravelMethod · 0.45

Tested by

no test coverage detected