Skip to content

Commit

Permalink
Change test_get_filename_path_panic test to empty
Browse files Browse the repository at this point in the history
  • Loading branch information
okynos committed Nov 21, 2023
1 parent ae47851 commit 3f824f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,8 @@ mod tests {
// ------------------------------------------------------------------------

#[test]
#[should_panic]
fn test_get_filename_path_panic() {
get_filename_path("/");
fn test_get_filename_path_empty() {
assert_eq!(get_filename_path("/"), "/");
}

// ------------------------------------------------------------------------
Expand Down

0 comments on commit 3f824f2

Please sign in to comment.