def test_int_to_bin(): input = random.sample(range(1000), 10) for x in input: assert mybin(x) == bin(x)
def test_int_to_bin4(): assert "-0b10" == mybin(-2)
def test_int_to_bin2(): assert "0b0" == mybin(0)
def test_int_to_bin3(): assert "0b10" == mybin(2)
def test_int_to_bin1(): assert "0b1" == mybin(1)