Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jtk18 committed Jan 25, 2022
1 parent 8cf2e5e commit 4219aa8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ mod tests {

#[test]
fn test_strip_extensions() {
let tests = &[(".stuff", Some("")),
("something.tar.gz", Some("something")),
("areally-cool.attempt.js", Some("areally-cool")),
("lastdot.", Some("lastdot"))];
let tests = &[
(".stuff", Some("")),
("something.tar.gz", Some("something")),
("areally-cool.attempt.js", Some("areally-cool")),
("lastdot.", Some("lastdot")),
];

for test_case in tests {
assert_eq!(test_case.0.strip_extensions(), test_case.1);
Expand Down

0 comments on commit 4219aa8

Please # to comment.