Exemple #1
0
def test_unpack_int8():
    (value, bytes_consumed) = DecodeUtils.unpack_int8(b'\xFE')
    assert_equal(bytes_consumed, 1)
    assert_equal(value, -2)
Exemple #2
0
def test_unpack_int8():
    (value, bytes_consumed) = DecodeUtils.unpack_int8(b'\xFE')
    assert bytes_consumed == 1
    assert value == -2