Пример #1
0
def test_pack_unsigned_min():
    assert U24LE(0) == b"\x00\x00\x00"
Пример #2
0
def test_pack_unsigned_overflow():
    U24LE(16777216)
Пример #3
0
def test_pack_unsigned_underflow():
    U24LE(-1)
Пример #4
0
def test_pack_unsigned_max():
    assert U24LE(16777215) == b"\xff\xff\xff"