Add test
This commit is contained in:
parent
5bde266c84
commit
5844e282e2
1 changed files with 1 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ mod test {
|
|||
#[test]
|
||||
fn test_sanitize_path() {
|
||||
assert_eq!(sanitize_path("/my/path/what?"), "/my/path/what");
|
||||
assert_eq!(sanitize_path("file (1).md"), "file (1).md");
|
||||
assert_eq!(sanitize_path("/my/path/\\\\:?"), "/my/path/_");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue