fix(traits1): rename test functions to snake case (#854)

Co-authored-by: zhangshaozhi <zhangshaozhi@ZhangshaozhideMacBook-Pro.local>
This commit is contained in:
xuesong 2021-10-18 19:57:12 +08:00 committed by GitHub
parent af91eb508a
commit 1663a16ead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -64,7 +64,6 @@ impl Display for ParseClimateError {
match self { match self {
NoCity => write!(f, "no city name"), NoCity => write!(f, "no city name"),
ParseFloat(e) => write!(f, "error parsing temperature: {}", e), ParseFloat(e) => write!(f, "error parsing temperature: {}", e),
_ => write!(f, "unhandled error!"),
} }
} }
} }

View File

@ -29,12 +29,12 @@ mod tests {
use super::*; use super::*;
#[test] #[test]
fn is_FooBar() { fn is_foo_bar() {
assert_eq!(String::from("Foo").append_bar(), String::from("FooBar")); assert_eq!(String::from("Foo").append_bar(), String::from("FooBar"));
} }
#[test] #[test]
fn is_BarBar() { fn is_bar_bar() {
assert_eq!( assert_eq!(
String::from("").append_bar().append_bar(), String::from("").append_bar().append_bar(),
String::from("BarBar") String::from("BarBar")