这是indexloc提供的服务,不要输入任何密码
Skip to content

fix bson serialization test for case where double and int unify to double #80

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
Jun 13, 2024

Conversation

hallettj
Copy link
Collaborator

In #77 I neglected to adjust our round-trip bson-to-json serialization proptest to handle cases where we treat ints as interchangeable with doubles. This change adds a custom equality test for use solely in tests that can compare ints and doubles.

@hallettj hallettj requested review from codedmart and dmoverton June 13, 2024 17:16
@@ -174,6 +174,16 @@ pub fn unify_object_types(
merged_type_map.into_values().collect()
}

/// True iff we consider a to be a supertype of b.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Super minor spelling iff

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

"iff" is an abbreviation for "if and only if"

@hallettj hallettj merged commit 82b6739 into main Jun 13, 2024
1 check passed
@hallettj hallettj deleted the jesse/fix-numeric-unification-test branch June 13, 2024 17:25
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