Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Platte <[email protected]>
  • Loading branch information
Gnnng and jplatte committed Aug 20, 2020
1 parent 4ecc111 commit 93995ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,12 +617,12 @@ mod tests {
#[test]
fn parse_spec_name_canonicalization() {
// accept binary names in both styles (`snake_case` and `kebab-case`)
let (dirs, _) = parse_spec("snake_case_crate=info,kebaba-case-crate=debug");
let (dirs, _) = parse_spec("snake_case_crate=info,kebab-case-crate=debug");
assert_eq!(dirs.len(), 2);
assert_eq!(dirs[0].name, Some("snake_case_crate".to_string()));
assert_eq!(dirs[0].level, LevelFilter::Info);

assert_eq!(dirs[1].name, Some("kebaba_case_crate".to_string()));
assert_eq!(dirs[1].name, Some("kebab_case_crate".to_string()));
assert_eq!(dirs[1].level, LevelFilter::Debug);
}
}

0 comments on commit 93995ae

Please sign in to comment.