Skip to content

formattedAttributedLeadingDotSyntax() test failed #1422

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

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

itingliu
Copy link
Contributor

This test and other tests testing the dot syntax assume that the left hand side of the comparison is using the same locale as the right side, in which case is Locale.autoupdatingCurrent. This further assumes that the state of the host machine remains unchanged throughout the tests.

Fix this by specifying the locale of the left and right side so they don't depend on the current locale settings.

Addresses 154994643

This test and other tests testing the dot syntax assume that the left hand side of the comparison is using the same locale as the right side, in which case is `Locale.autoupdatingCurrent`. This further assumes that the state of the host machine remains unchanged throughout the tests.

Fix this by specifying the locale of the left and right side so they don't depend on the current locale settings.

Addresses 154994643
@itingliu
Copy link
Contributor Author

@swift-ci please test

@itingliu itingliu requested a review from jmschonfeld July 10, 2025 20:12
@itingliu itingliu merged commit 9fce2a5 into swiftlang:main Jul 11, 2025
16 checks passed
@itingliu itingliu deleted the dot-syntax-tests branch July 11, 2025 00:51
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.

2 participants