def test_unpack_unsigned_max(): assert U24LE.unpack(b"\xff\xff\xff")[0] == 16777215
def test_pack_unsigned_min(): assert U24LE(0) == b"\x00\x00\x00"
def test_unpack_unsigned_min(): assert U24LE.unpack(b"\x00\x00\x00")[0] == 0
def test_pack_unsigned_underflow(): U24LE(-1)
def test_pack_unsigned_overflow(): U24LE(16777216)
def test_pack_unsigned_max(): assert U24LE(16777215) == b"\xff\xff\xff"