-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[test] Drop stdlib-redundant tests #1492
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
Conversation
hasPrefix/hasSuffix is now available universally from the standard library (it used to be Darwin only). As such, these tests are redundant with the tests in the standard library (indeed they are literally copy-pasted from the stdlib). As test methodology changes, maintaining these across projects and platforms is troublesome.
|
@airspeedswift I believe you made the changes to make this test redundant. |
|
@swift-ci please test |
|
Argh, I couldn't build this because of another issue locally. I will download a toolchain and try again on Mac. |
|
@swift-ci please test |
1 similar comment
|
@swift-ci please test |
|
Small string merged. This will be needed for CI. @parkera @phausler @Catfish-Man does this look ok? Can I merge after the builder? |
|
@shahmishal @aschwaighofer this might be needed to unbreak CI Linux. Hoping to get a LGTM from @parker, but worse case we merge to unbreak CI, he can revert, and I’ll have to bring 🍻🍺 to apologize |
|
Merged to unblock CI. |
|
Btw this test was leftover from before the id to any transition where it was previously testing NSString and not String. Since we fixed the return types of the APIs to favor structures in Foundation this test is vestigial. |
hasPrefix/hasSuffix is now available universally from the standard
library (it used to be Darwin only). As such, these tests are
redundant with the tests in the standard library (indeed they are
literally copy-pasted from the stdlib). As test methodology changes,
maintaining these across projects and platforms is troublesome.