def test_config(): encode_dtype, decode_dtype = '<i4', '<i8' codec = AsType(encode_dtype=encode_dtype, decode_dtype=decode_dtype) check_config(codec)
def test_encode_decode(): for arr in arrays: codec = AsType(encode_dtype=arr.dtype, decode_dtype=arr.dtype) check_encode_decode(arr, codec)