diff --git a/zarr/tests/test_util.py b/zarr/tests/test_util.py index 10f5889f71..84e09dac8f 100644 --- a/zarr/tests/test_util.py +++ b/zarr/tests/test_util.py @@ -6,12 +6,21 @@ from zarr.util import (guess_chunks, human_readable_size, info_html_report, info_text_report, is_total_slice, normalize_chunks, + normalize_dimension_separator, normalize_fill_value, normalize_order, normalize_resize_args, normalize_shape, retry_call, tree_array_icon, tree_group_icon, tree_get_icon, tree_widget) +def test_normalize_dimension_separator(): + assert None is normalize_dimension_separator(None) + assert '/' == normalize_dimension_separator('/') + assert '.' == normalize_dimension_separator('.') + with pytest.raises(ValueError): + normalize_shape('X') + + def test_normalize_shape(): assert (100,) == normalize_shape((100,)) assert (100,) == normalize_shape([100])