Skip to content

Conversation

@rkistner
Copy link
Contributor

Add some BSON parsing tests, to make sure we parse all the types correctly. Even with the official BSON libraries I've seen some edge cases handled incorrectly (example), so I feel testing is important.

These tests cases were automatically generated by claude code, but I manually confirmed that the output matches that of the JS bson package.

@rkistner rkistner requested a review from simolus3 June 10, 2025 11:15
Copy link
Contributor

@simolus3 simolus3 left a comment

Choose a reason for hiding this comment

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

Nice, thanks 👍 I didn't check all the input data either, but the test cases themselves make sense to me and since we match the behavior of another BSON library, this looks good to me.

@rkistner rkistner merged commit 7182c0f into sync-state-machine Jun 10, 2025
21 checks passed
@rkistner rkistner deleted the add-bson-tests branch June 10, 2025 13:20
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.

3 participants