Skip to content

Commit c7a6afa

Browse files
committed
test(decimal): add positive Decimal case to
bytes_required
1 parent 1ba39b5 commit c7a6afa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/utils/test_decimal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def test_bytes_required() -> None:
5555
assert bytes_required(-32768) == 2
5656
assert bytes_required(-8388608) == 3
5757
# The same applies when the unscaled value comes from a Decimal.
58+
assert bytes_required(Decimal("1.27")) == 1
5859
assert bytes_required(Decimal("-1.28")) == 1
5960
assert bytes_required(Decimal("-327.68")) == 2
6061

0 commit comments

Comments
 (0)