Skip to content

Implement hasPrefix/hasSuffix in Swift #630

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

Closed
wants to merge 1 commit into from

Conversation

frootloops
Copy link
Contributor

But how can I test it?

I ran utils/build-script -RT but I'm not sure is that enough?

Testing Time: 1559.11s
  Expected Passes    : 7658
  Expected Failures  : 8
  Unsupported Tests  : 39
-- check-swift-all-macosx-x86_64 finished --
--- Finished tests for swift ---

@glessard
Copy link
Contributor

#440

@gribozavr
Copy link
Contributor

@frootloops It is sufficient testing, but you'd need to run that command on Linux. On OS X that code isn't even compiled.

@ogres
Copy link
Contributor

ogres commented Dec 24, 2015

Would not be better to compare characters one by one, without creating a range and a new substring ?

@frootloops frootloops closed this Dec 24, 2015
freak4pc pushed a commit to freak4pc/swift that referenced this pull request Sep 28, 2022
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.

5 participants