Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@bamarsha
Copy link
Contributor

GetRuntimeMetadata returns strings containing decimals in the format of the current culture, so 2.1 would become "2.1" in an English culture but "2,1" in a German culture, for example. However, the tests use a hard-coded string "2.1", causing the tests to fail when the current culture uses a comma for decimals. While the tests pass on the build servers because they use an English culture, they can fail when run locally during development.

This PR might not be the best solution - maybe GetRuntimeMetadata should return a culture-invariant string, or all the unit tests should automatically run in the invariant culture regardless of local settings - but it does work around the immediate issue for me.

@theRoughCode
Copy link
Contributor

Oh that's interesting, I didn't know decimals are represented differently based on locale. This LGTM, thanks Sarah!

@bamarsha bamarsha merged commit 50df7b3 into master Aug 18, 2020
@bamarsha bamarsha deleted the samarsha/decimal-culture branch August 18, 2020 17:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants