Skip to content

Commit

Permalink
fix(traits1): rename test functions to snake case (#854)
Browse files Browse the repository at this point in the history
Co-authored-by: zhangshaozhi <zhangshaozhi@ZhangshaozhideMacBook-Pro.local>
  • Loading branch information
xuesongbj and zhangshaozhi committed Oct 18, 2021
1 parent af91eb5 commit 1663a16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion exercises/advanced_errors/advanced_errs2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ impl Display for ParseClimateError {
match self {
NoCity => write!(f, "no city name"),
ParseFloat(e) => write!(f, "error parsing temperature: {}", e),
_ => write!(f, "unhandled error!"),
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions exercises/traits/traits1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ mod tests {
use super::*;

#[test]
fn is_FooBar() {
fn is_foo_bar() {
assert_eq!(String::from("Foo").append_bar(), String::from("FooBar"));
}

#[test]
fn is_BarBar() {
fn is_bar_bar() {
assert_eq!(
String::from("").append_bar().append_bar(),
String::from("BarBar")
Expand Down

0 comments on commit 1663a16

Please sign in to comment.