def test_unpack_signed_max(): assert S24LE.unpack(b"\xff\xff\x7f")[0] == 8388607
def test_unpack_signed_min(): assert S24LE.unpack(b"\x00\x00\x80")[0] == -8388608
def test_pack_signed_underflow(): S24LE(-8388609)
def test_pack_signed_overflow(): S24LE(8388608)
def test_pack_signed_max(): assert S24LE(8388607) == b"\xff\xff\x7f"
def test_pack_signed_min(): assert S24LE(-8388608) == b"\x00\x00\x80"