def test_decode_64bit_simple():
    value, index = serializer.decode_struct(
        [0, 0, 0, 224, 37, 153, 94, 192],
        0,
        8,
        '<d',
    )
    assert -122.39293670654297 == value
    assert 8 == index
def test_decode_32bit_simple():
    value, index = serializer.decode_struct(
        [47, 201, 244, 194],
        0,
        4,
        '<f',
    )
    assert -122.39293670654297 == value
    assert 4 == index