The naming scheme in (The Rust Programming Language)[https://doc.rust-lang.org/book/ch11-01-writing-tests.html] uses the follwoing naming scheme for tests:
#[cfg(test)]
mod tests {
#[test]
fn foo() {
assert!(true);
}
}
But within (Rust By Example)[https://doc.rust-lang.org/rust-by-example/testing/unit_testing.html] it uses the following naming scheme for tests:
#[cfg(test)]
mod tests {
#[test]
fn test_foo() {
assert!(true);
}
}
Rust By Example should use the same naming scheme for tests, as The Rust Programming Language website.
The naming scheme in (The Rust Programming Language)[https://doc.rust-lang.org/book/ch11-01-writing-tests.html] uses the follwoing naming scheme for tests:
But within (Rust By Example)[https://doc.rust-lang.org/rust-by-example/testing/unit_testing.html] it uses the following naming scheme for tests:
Rust By Example should use the same naming scheme for tests, as The Rust Programming Language website.