Skip to content

Reenable a test for UnicodeScalar #31883

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
May 19, 2020

Conversation

gribozavr
Copy link
Contributor

This test was disabled back in 2017 when the new integer protocols were landing due to regressions in error messages. It is better to have a working test that verifies the desired behavior (UnicodeScalar not supporting arithmetic and the type checker producing somewhat readable messages), rather than a disabled test because the error messages are not perfect.

This test was disabled back in 2017 when the new integer protocols were
landing due to regressions in error messages. It is better to have a
working test that verifies the desired behavior (UnicodeScalar not
supporting arithmetic and the type checker producing somewhat readable
messages), rather than a disabled test because the error messages are
not perfect.
@gribozavr gribozavr requested a review from CodaFi May 19, 2020 09:55
@gribozavr
Copy link
Contributor Author

@swift-ci Please test

@CodaFi
Copy link
Contributor

CodaFi commented May 19, 2020

Seems like this should be a Sema test.

@gribozavr
Copy link
Contributor Author

We have a bunch of test/stdlib/*Diagnostics* tests that check error messages related to specific stdlib types. I'd be happy to move them all to test/Sema in a separate PR if you prefer that organization.

@CodaFi
Copy link
Contributor

CodaFi commented May 19, 2020

Hm, yeah. Unless they're specifically testing warnings or errors produced by stdlib itself, I think they don't belong there.

@CodaFi
Copy link
Contributor

CodaFi commented May 19, 2020

These are separable concerns. I'm going to merge this.

@CodaFi CodaFi merged commit 6379387 into swiftlang:master May 19, 2020
@gribozavr gribozavr deleted the enable-unicodescalar-test branch May 19, 2020 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants