Exemplo n.º 1
0
def test_float_min_value2():
    assert Float.min_value().sign == Bit(True)
    for bit in Float.min_value().exponents[:-1]:
        assert bit == Bit()
    assert Float.min_value().exponents[-1] == Bit(True)
    for bit in Float.min_value().fractions[:-1]:
        assert bit == Bit()
    assert Float.min_value().fractions[-1] == Bit(True)
Exemplo n.º 2
0
def test_float_min_value1():
    assert str(Float.min_value()) == '-1.175494490952134e-38'