Skip to content

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