Skip to content

Commit

Permalink
test: max type was off in the test (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Sep 18, 2024
1 parent 14f7a8d commit 2f1382b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
({"a": 1}, {"a": {"type": "scalar", "data": 1}}),
# max INT96 value
(
{"a": 2**96 - 1},
{"a": {"type": "scalar", "data": 79228162514264337593543950335}},
{"a": 2**95 - 1},
{"a": {"type": "scalar", "data": 39614081257132168796771975167}},
),
# int over INT96 max parses as Decimal
(
{"a": 2**96},
{"a": {"type": "scalar", "data": Decimal("79228162514264337593543950336")}},
{"a": 2**95},
{"a": {"type": "scalar", "data": Decimal("39614081257132168796771975168")}},
),
# Decimal parses as Decimal
(
Expand Down

0 comments on commit 2f1382b

Please sign in to comment.