Skip to content

book: use mod tests consistently #24043

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
Closed

Conversation

callahad
Copy link
Contributor

@callahad callahad commented Apr 4, 2015

Fixes #24030

Of the four code samples with modules in TRPL:

- 2 use `mod test`
- 2 use `mod tests`

We should be consistent here, but which is right? The stdlib is split:

$ grep -r 'mod tests {' src/lib* | wc -l
      63
$ grep -r 'mod test {'  src/lib* | wc -l
      58

Subjectively, I like the plural. Maybe you, dear reviewer, do too?

r? @steveklabnik

Fixes rust-lang#24030

Of the four code samples with modules in TRPL:

    - 2 use `mod test`
    - 2 use `mod tests`

We should be consistent here, but which is right? The stdlib is split:

    $ grep -r 'mod tests {' src/lib* | wc -l
          63
    $ grep -r 'mod test {'  src/lib* | wc -l
          58

Subjectively, I like the plural. Maybe you, dear reviewer, do too?
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see CONTRIBUTING.md for more information.

@callahad
Copy link
Contributor Author

callahad commented Apr 4, 2015

This is the plural (mod tests) option. For the mod test option, see #24042

@steveklabnik
Copy link
Member

doing singular for now

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.

The "testing" section of the rust book needs a small correction
3 participants