Skip to content

Fix float narrowing tests in locales other than en-US#680

Merged
ClearScriptLib merged 1 commit intoClearFoundry:masterfrom
decentraland:fix-float-narrowing-tests
Oct 8, 2025
Merged

Fix float narrowing tests in locales other than en-US#680
ClearScriptLib merged 1 commit intoClearFoundry:masterfrom
decentraland:fix-float-narrowing-tests

Conversation

@AnsisMalins
Copy link
Contributor

String.Format, by default, takes into account the current locale. In these tests, the result was being compared to a constant string that uses point as the decimal separator and commas as the thousands separators. Computers set to other languages would use different symbols for this, and tests would fail.

The alternative way to fix these tests would be to supply the en-US (or invariant) culture to the script being evaluated.

@ClearScriptLib
Copy link
Collaborator

Thanks, @AnsisMalins!

@ClearScriptLib ClearScriptLib merged commit 2ab9c63 into ClearFoundry:master Oct 8, 2025
1 check passed
@AnsisMalins AnsisMalins deleted the fix-float-narrowing-tests branch October 23, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants