Skip to content

Commit

Permalink
Test int decoding edge-case
Browse files Browse the repository at this point in the history
  • Loading branch information
tammoippen committed Sep 19, 2017
1 parent cb51ff5 commit 66fe1e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_int2str.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ def test_invalid():
encode_int(-1, bpc)


def test_empty():
for bpc in (2, 4, 6):
assert 0 == decode_int('', bpc)


@pytest.mark.parametrize('bpc', (2, 4, 6))
def test_randoms(bpc):
prev_code = None
Expand Down

0 comments on commit 66fe1e2

Please sign in to comment.