def test_integer_min_value2(): bits = Integer.min_value().bits assert Integer.min_value().sign == Bit(True) for bit in bits: assert bit == Bit(True)
def test_integer_min_value1(): assert Integer.min_value() == Integer(str(-(2**(Integer.bit_len - 1) - 1)))