Skip to content

Commit 91d05e4

Browse files
authored
Add extra test case for bitround error (#393)
1 parent 3687271 commit 91d05e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

numcodecs/tests/test_bitround.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,5 @@ def test_errors():
7878
BitRound(keepbits=99).encode(np.array([0], dtype="float32"))
7979
with pytest.raises(TypeError):
8080
BitRound(keepbits=10).encode(np.array([0]))
81+
with pytest.raises(ValueError):
82+
BitRound(-1)

0 commit comments

Comments
 (0)