def test_decoding_union(encoded, decoded): assert decode(encoded) == decoded
def test_decoding_bitfield(encoded, decoded): assert decode(encoded) == decoded
def test_decoding_array(encoded, decoded): assert decode(encoded) == decoded
def test_decoding_complex(encoded, decoded): assert decode(encoded) == decoded
def test_decoding_pointer(encoded, decoded): assert decode(encoded) == decoded
def test_decoding_struct(encoded, decoded): assert decode(encoded) == decoded
def test_decoding_block(): assert decode('@?') == 'id /* block */'
def test_decoding_simple_types(encoded, decoded): assert decode(encoded) == decoded