Test expected length is produced
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5d6cd9158d
commit
52e2ea65f9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user