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

Method test_tofile_roundtrip

numpy/_core/tests/test_longdouble.py:254–258  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

252 @pytest.mark.skipif(string_to_longdouble_inaccurate,
253 reason="Need strtold_l")
254 def test_tofile_roundtrip(self):
255 with temppath() as path:
256 self.tgt.tofile(path, sep=" ")
257 res = np.fromfile(path, dtype=np.longdouble, sep=" ")
258 assert_equal(res, self.tgt)
259
260
261# 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