refactor: refactor make_integer_to_hold_ints

- rename make_integer_to_hold_ints to make_integer_to_hold
- accept any values as input as we don't know which type this function will
be called with
- rename get_bits_to_represent_int to
get_bits_to_represent_value_as_integer
This commit is contained in:
Arthur Meyre
2021-08-19 15:06:09 +02:00
parent 0ff3ae4795
commit 60daf31981
5 changed files with 23 additions and 19 deletions

View File

@@ -8,7 +8,7 @@ from hdk.common.data_types.integers import (
Integer,
SignedInteger,
UnsignedInteger,
make_integer_to_hold_ints,
make_integer_to_hold,
)
@@ -109,4 +109,4 @@ def test_integers_repr(integer: Integer, expected_repr_str: str):
)
def test_make_integer_to_hold(values, force_signed, expected_result):
"""Test make_integer_to_hold"""
assert expected_result == make_integer_to_hold_ints(values, force_signed)
assert expected_result == make_integer_to_hold(values, force_signed)