Test expected length is produced
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-07-09 10:13:07 +02:00
parent 5d6cd9158d
commit 52e2ea65f9
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 4 additions and 0 deletions

View File

@ -16,3 +16,7 @@ def test_encoding_length():
for idx in range(0, 53):
number = floor(pow(2, idx))
assert len(encode(number)) == encoding_length(number)
def test_encode_bytes_count():
assert len(encode(300)) == 2