Skip to content

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Sep 18, 2024

What I did

fixes: #113

How I did it

The max int for Int96 is defined as 2**95 - 1 but the test was using 2**96 - 1

How to verify it

Checklist

  • Passes all linting checks (pre-commit and CI jobs)
  • New test cases have been added and are passing
  • Documentation has been updated
  • PR title follows Conventional Commit standard (will be automatically included in the changelog)

@antazoey antazoey requested a review from mikeshultz September 18, 2024 13:19
({"a": 1}, {"a": {"type": "scalar", "data": 1}}),
# max INT96 value
(
{"a": 2**96 - 1},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You were maybe thinkin' of UInt96 here?

fubuloubu
fubuloubu previously approved these changes Sep 18, 2024
Copy link
Member

@fubuloubu fubuloubu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should do the next one as well?

{"a": 2**95 - 1},
{"a": {"type": "scalar", "data": 39614081257132168796771975167}},
),
# int over INT96 max parses as Decimal
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also doesn't match

@antazoey antazoey merged commit 2f1382b into ApeWorX:main Sep 18, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test: tests are broken
2 participants