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

Function test_fromstring

numpy/core/tests/test_longdouble.py:84–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83@pytest.mark.skipif(string_to_longdouble_inaccurate, reason="Need strtold_l")
84def test_fromstring():
85 o = 1 + LD_INFO.eps
86 s = (" " + repr(o))*5
87 a = np.array([o]*5)
88 assert_equal(np.fromstring(s, sep=" ", dtype=np.longdouble), a,
89 err_msg="reading '%s'" % s)
90
91
92def test_fromstring_complex():

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
fromstringMethod · 0.80

Tested by

no test coverage detected