We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c0ac0a commit eb00266Copy full SHA for eb00266
src/doc/style/testing/unit.md
@@ -1,10 +1,10 @@
1
% Unit testing
2
3
-Unit tests should live in a `test` submodule at the bottom of the module they
4
-test. Mark the `test` submodule with `#[cfg(test)]` so it is only compiled when
+Unit tests should live in a `tests` submodule at the bottom of the module they
+test. Mark the `tests` submodule with `#[cfg(test)]` so it is only compiled when
5
testing.
6
7
-The `test` module should contain:
+The `tests` module should contain:
8
9
* Imports needed only for testing.
10
* Functions marked with `#[test]` striving for full coverage of the parent module's
@@ -17,7 +17,7 @@ For example:
17
// Excerpt from std::str
18
19
#[cfg(test)]
20
-mod test {
+mod tests {
21
#[test]
22
fn test_eq() {
23
assert!((eq(&"".to_owned(), &"".to_owned())));
0 commit comments