YamlDotNet icon indicating copy to clipboard operation
YamlDotNet copied to clipboard

Fixes test `DeserializeScalarEdgeCases` for non english cultures.

Open jhm-ciberman opened this issue 1 year ago • 0 comments

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()

jhm-ciberman avatar Mar 30 '23 03:03 jhm-ciberman