Skip to content

Commit 93584af

Browse files
committed
add test
1 parent 8a93077 commit 93584af

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

numcodecs/tests/test_zstd.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,10 @@ def test_native_functions():
9090
assert Zstd.default_level() == 3
9191
assert Zstd.min_level() == -131072
9292
assert Zstd.max_level() == 22
93+
94+
95+
def test_zstd_config():
96+
# Testing that checksum is removed from config if False
97+
codec = Zstd(level=5, checksum=False)
98+
config = codec.get_config()
99+
assert config == {"id": "zstd", "level": 5}

0 commit comments

Comments
 (0)