We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2282cb9 commit c6460b5Copy full SHA for c6460b5
1 file changed
tests/test_codecs/test_nvcomp.py
@@ -113,3 +113,21 @@ def test_compute_encoded_chunk_size() -> None:
113
prototype=buffer_prototype,
114
),
115
)
116
+
117
118
+async def test_nvcomp_zstd_encode_none() -> None:
119
+ codec = NvcompZstdCodec(level=0, checksum=False)
120
+ chunks_and_specs = [
121
+ (
122
+ None,
123
+ ArraySpec(
124
+ shape=(10, 10),
125
+ dtype=zarr.core.dtype.npy.int.Int32,
126
+ fill_value=0,
127
+ config=ArrayConfig(order="C", write_empty_chunks=False),
128
+ prototype=buffer_prototype,
129
+ ),
130
+ )
131
+ ]
132
+ result = await codec.encode(chunks_and_specs)
133
+ assert result == [None]
0 commit comments