diff --git a/tests/split_test.rs b/tests/split_test.rs index 72b834c..1cc3ea8 100644 --- a/tests/split_test.rs +++ b/tests/split_test.rs @@ -74,4 +74,10 @@ mod test { let p = "C:/logs/aa.log".extract_file_name(); assert_eq!(p, "aa.log"); } + + #[test] + fn test_extract_file_name6() { + let p = "C:\\logs\\aa.log".extract_file_name(); + assert_eq!(p, "aa.log"); + } }