Skip to content
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

Fixes test DeserializeScalarEdgeCases for non english cultures. #793

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jhm-ciberman
Copy link

@jhm-ciberman jhm-ciberman commented Mar 30, 2023

Summary

The test DeserializeScalarEdgeCases fails if the machine culture does not use the dot decimal separator. This is caused due to object.ToString() being culture sensitive for floats and doubles.

This PR addresses partially #792. For a full explanation refer to that issue.

Fix

This PR fixes the test using string.Format with CultureInfo.InvariantCulture instead of object.ToString()

The test fails if the machine culture does not use the
dot decimal separator. This is caused due to `object.ToString()` being
used that is culture sensitive. This commit fixes the test using
`string.Format` with `CultureInfo.InvariantCulture`
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.

None yet

1 participant