Skip to content

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.

1 participant