# Path: numcodecs/tests/common.py
# def compare_arrays(arr, res, precision=None):
# def check_encode_decode(arr, codec, precision=None):
# def check_encode_decode_partial(arr, codec, precision=None):
# def assert_array_items_equal(res, arr):
# def check_encode_decode_array(arr, codec):
# def check_config(codec):
# def check_repr(stmt):
# def check_backwards_compatibility(codec_id, arrays, codecs, precision=None, prefix=None):
# def check_err_decode_object_buffer(compressor):
# def check_err_encode_object_buffer(compressor):
# def check_max_buffer_size(codec):


import unittest
import numpy as np
import pytest
    from numcodecs.vlen import VLenUTF8
from numcodecs.tests.common import (check_config, check_repr, check_encode_decode_array,
                                    check_backwards_compatibility, greetings,
                                    assert_array_items_equal)




try:
except ImportError:  # pragma: no cover
    raise unittest.SkipTest("vlen-utf8 not available")


arrays = [
    np.array(['foo', 'bar', 'baz'] * 300, dtype=object),
    np.array(greetings * 100, dtype=object),
    np.array(['foo', 'bar', 'baz'] * 300, dtype=object).reshape(90, 10),

# Path: numcodecs/tests/common.py
# def compare_arrays(arr, res, precision=None):
# def check_encode_decode(arr, codec, precision=None):
# def check_encode_decode_partial(arr, codec, precision=None):
# def assert_array_items_equal(res, arr):
# def check_encode_decode_array(arr, codec):
# def check_config(codec):
# def check_repr(stmt):
# def check_backwards_compatibility(codec_id, arrays, codecs, precision=None, prefix=None):
# def check_err_decode_object_buffer(compressor):
# def check_err_encode_object_buffer(compressor):
# def check_max_buffer_size(codec):


# Path: numcodecs/tests/test_vlen_utf8.py
import unittest
import numpy as np
import pytest
    from numcodecs.vlen import VLenUTF8
from numcodecs.tests.common import (check_config, check_repr, check_encode_decode_array,
                                    check_backwards_compatibility, greetings,
                                    assert_array_items_equal)





try:
except ImportError:  # pragma: no cover
    raise unittest.SkipTest("vlen-utf8 not available")


arrays = [
    np.array(['foo', 'bar', 'baz'] * 300, dtype=object),
    np.array(greetings * 100, dtype=object),
    np.array(['foo', 'bar', 'baz'] * 300, dtype=object).reshape(90, 10),

    np.array(greetings * 1000, dtype=object).reshape(len(greetings), 100, 10, order='F'),