Test expected length is produced
All checks were successful
continuous-integration/drone/push Build is passing

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

View File

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