def test_unpack_signed_max():
    assert S24LE.unpack(b"\xff\xff\x7f")[0] == 8388607
Example #2
0
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
Example #4
0
def test_unpack_signed_min():
    assert S24LE.unpack(b"\x00\x00\x80")[0] == -8388608
Example #5
0
def test_pack_signed_underflow():
    S24LE(-8388609)
Example #6
0
def test_pack_signed_overflow():
    S24LE(8388608)
Example #7
0
def test_pack_signed_max():
    assert S24LE(8388607) == b"\xff\xff\x7f"
Example #8
0
def test_pack_signed_min():
    assert S24LE(-8388608) == b"\x00\x00\x80"