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

Fix tests on german machine #83

Merged
merged 3 commits into from
Jul 17, 2024

Conversation

Patrick-Kladek
Copy link
Contributor

Description

When running tests on a non-English Mac computer, some tests related to the decimal separator do not pass.

Open Tasks

  • Keep locale synced in both number formatters

Infos for Reviewer

Turns out we use 2 NumberFormatter and their locale is not synced. This PR fixes this.

@Patrick-Kladek Patrick-Kladek changed the title fix tests on german machine Fix tests on german machine Jul 15, 2024
@Patrick-Kladek Patrick-Kladek marked this pull request as ready for review July 15, 2024 16:39
public var locale: Locale {
set {
self.numberFormatter.locale = newValue
self.nonFractionalLengthFormatter.numberFormatter.locale = newValue
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean teh numberFormatter and the nonFractionalLengthFormatter were not synced before?

Copy link
Collaborator

@boldtrn boldtrn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@hactar hactar merged commit 4f3e8ad into maplibre:main Jul 17, 2024
2 checks passed
@Patrick-Kladek Patrick-Kladek deleted the fix-tests-on-german-machine branch July 17, 2024 18:34
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.

3 participants