fix(traits1): rename test functions to snake case (#854)
Co-authored-by: zhangshaozhi <zhangshaozhi@ZhangshaozhideMacBook-Pro.local>
This commit is contained in:
parent
af91eb508a
commit
1663a16ead
@ -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!"),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user