Skip to content

Commit

Permalink
cdn_logs/paths: Add additional "path with dashes" test
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Jan 31, 2024
1 parent e230435 commit aaa86b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates_io_cdn_logs/src/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ mod tests {
assert_eq!(format(&result), "[email protected]");
}

#[test]
fn test_parse_path_with_dashes() {
let path = "/crates/foo-bar/foo-bar-1.0.0-rc.1.crate";
let result = assert_some!(parse_path(path));
assert_eq!(format(&result), "[email protected]");
}

#[test]
fn test_parse_path_empty() {
assert_none!(parse_path(""));
Expand Down

0 comments on commit aaa86b6

Please sign in to comment.