Skip to content

Refactoring tests for CollectionOfOne #2894

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 5, 2016

Conversation

frootloops
Copy link
Contributor

No description provided.

OneTests.test("Basic tests") {
for x in CollectionOfOne(2) {
expectEqual(2, x)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test used to check not only the values, but also that the loop only did one iteration -- could you add a counter as well?

@gribozavr
Copy link
Contributor

@frootloops Thank you! LGTM modulo a small comment.

@gribozavr
Copy link
Contributor

@swift-ci Please smoke test

@frootloops frootloops force-pushed the collection-of-one branch from e06ca5e to 13f83a0 Compare June 4, 2016 22:03
@frootloops
Copy link
Contributor Author

@gribozavr check it again please

@gribozavr
Copy link
Contributor

@swift-ci Please test and merge

@swift-ci swift-ci merged commit 9433c39 into swiftlang:master Jun 5, 2016
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.

3 participants