Skip to content

[XCTAssert] Document file and line params, as well as where assert functions may be used #24

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 2 commits into from
Jan 7, 2016

Conversation

modocache
Copy link
Contributor

Although it is rare for people to specify these parameters manually, it is not so rare as to not require documentation; see https://twitter.com/mxcl/status/679719145567588353. Add a note to the documentation that explains when they are useful.

Also adopt documentation conventions from the Swift standard library: use /// over /** */, and only have 80 characters per line.

In addition, the XCTAssert* family of functions require that XCTCurrentTestCase is set, so this pull request documents that as well.

///
/// - Parameter expression: A boolean test. If it evaluates to false, the
/// assertion fails and emits a test failure.
/// - Parameter message: An optional message to use in the failure if the
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change conflicts with #22--@briancroom and I both fix the assetion typo 😊

Whoever gets merged last will have to rebase their changes on master to resolve the conflicts. Just an FYI.

Although it is rare for people to specify these parameters manually, it
is not so rare as to not require documentation. Add a note to the
documentation that explains when they are useful.

Also adopt documentation conventions from the Swift standard library:
use `///` over `/** */`, and only have 80 characters per line.
The XCTAssert* family of functions require that XCTCurrentTestCase is
set. Failures that occur outside of these conditions are never reported.
mike-ferris pushed a commit that referenced this pull request Jan 7, 2016
[XCTAssert] Document file and line params, as well as where assert functions may be used
@mike-ferris mike-ferris merged commit a66d0ee into swiftlang:master Jan 7, 2016
@modocache modocache deleted the documentation branch January 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