def test_float_max_value2(): assert Float.max_value().sign == Bit(False) for bit in Float.max_value().exponents[:-1]: assert bit == Bit(True) assert Float.max_value().exponents[-1] == Bit() for bit in Float.max_value().fractions: assert bit == Bit(True)
def test_float_max_value1(): assert str(Float.max_value()) == '340282346638528859811704183484516925440'