예제 #1
0
def test_longdouble2str_same_as_str_and_repr(i_f):
    i, f = i_f
    ld = np.longdouble(i) + np.longdouble(f)
    assert longdouble2str(ld) == str(ld)
    assert longdouble2str(ld) == repr(ld)
예제 #2
0
def test_longdouble_str_roundtrip_is_exact(i_f):
    i, f = i_f
    ld = np.longdouble(i) + np.longdouble(f)
    assert ld == str2longdouble(longdouble2str(ld))