Skip to content

Sync BSON specification tests #1555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2024
Merged

Conversation

jyemin
Copy link
Collaborator

@jyemin jyemin commented Nov 1, 2024

There are some changes we made long ago to double.json to account for how Java formats exponents, so double.json is not synced. The diffs are in these two tests: https://github.com/mongodb/specifications/blob/master/source/bson-corpus/tests/double.json#L31-L41. Java formats the exponent as E18 rather that E+18. Both are perfectly valid so we just changed the test.

@jyemin jyemin self-assigned this Nov 1, 2024
@NathanQingyangXu
Copy link
Contributor

The diff is just as you mentioned. Only double.json not synced up, and if we synced up, our GenericBsonTest would fail due to the difference between E18 and E+18.
LGTM

@jyemin jyemin merged commit 510cee4 into mongodb:main Nov 2, 2024
52 of 60 checks passed
@jyemin jyemin deleted the sync-bson-spec-tests branch November 2, 2024 14:50
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.

2 participants