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

Method test_tofile_roundtrip

numpy/core/tests/test_longdouble.py:268–272  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

266 @pytest.mark.skipif(string_to_longdouble_inaccurate,
267 reason="Need strtold_l")
268 def test_tofile_roundtrip(self):
269 with temppath() as path:
270 self.tgt.tofile(path, sep=" ")
271 res = np.fromfile(path, dtype=np.longdouble, sep=" ")
272 assert_equal(res, self.tgt)
273
274
275# Conversions long double -> string

Callers

nothing calls this directly

Calls 3

temppathFunction · 0.90
assert_equalFunction · 0.90
tofileMethod · 0.80

Tested by

no test coverage detected