Skip to content

Adding tests for String's replaceSubrange overloads #2930

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
Jun 8, 2016

Conversation

austinzheng
Copy link
Contributor

@austinzheng austinzheng commented Jun 7, 2016

What's in this pull request?

@gribozavr

Adding tests for Strings replaceSubrange() overload for Range types. Both variants (input of string, input of character sequence) are tested.

Tests pass locally. This PR can be merged whenever.


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
All supported platforms @swift-ci Please smoke test and merge
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
All supported platforms @swift-ci Please test and merge
OS X platform @swift-ci Please test OS X platform
OS X platform @swift-ci Please benchmark
Linux platform @swift-ci Please test Linux platform

Lint Testing

Language Comment
Python @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

@austinzheng austinzheng force-pushed the az-stringtests branch 2 times, most recently from f764f84 to 8616e6b Compare June 7, 2016 22:27
@austinzheng
Copy link
Contributor Author

I verified tests pass locally. This PR is ready to be merged (pending CI).

@gribozavr
Copy link
Contributor

Thank you! Could you also add tests for overloads that take a ClosedRange<Index>?

@gribozavr
Copy link
Contributor

@swift-ci Please test

@austinzheng
Copy link
Contributor Author

Yep, once this is in I'll make a follow-up PR.

@gribozavr
Copy link
Contributor

And also String.removeSubrange(), if I may ask for that...

@gribozavr
Copy link
Contributor

Oh, and could you remove the fixmes that you have resolved from stdlib/public/core/StringRangeReplaceableCollection.swift.gyb?

@austinzheng
Copy link
Contributor Author

Yes and yes :). I plan on making the String tests equivalent in coverage to the range replaceable collection tests, and removing the fixmes once everything is (about to go) in.

@gribozavr gribozavr merged commit 73c3711 into swiftlang:master Jun 8, 2016
@austinzheng austinzheng deleted the az-stringtests branch June 8, 2016 02:44
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