diff options
| author | xuesong <ylj7117789@163.com> | 2021-10-18 19:57:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-18 13:57:12 +0200 |
| commit | 1663a16eade6ca646b6ed061735f7982434d530d (patch) | |
| tree | 9b0c694888411cd2981ef1d5078545339981d068 | |
| parent | af91eb508ac659272398486f041b2a8364f9e385 (diff) | |
fix(traits1): rename test functions to snake case (#854)
Co-authored-by: zhangshaozhi <zhangshaozhi@ZhangshaozhideMacBook-Pro.local>
| -rw-r--r-- | exercises/advanced_errors/advanced_errs2.rs | 1 | ||||
| -rw-r--r-- | exercises/traits/traits1.rs | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/exercises/advanced_errors/advanced_errs2.rs b/exercises/advanced_errors/advanced_errs2.rs index d9d44d0..54e669f 100644 --- a/exercises/advanced_errors/advanced_errs2.rs +++ b/exercises/advanced_errors/advanced_errs2.rs @@ -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!"), } } } diff --git a/exercises/traits/traits1.rs b/exercises/traits/traits1.rs index 2ef9e11..15e08f2 100644 --- a/exercises/traits/traits1.rs +++ b/exercises/traits/traits1.rs @@ -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") |
