diff options
| author | Michael Hall <michael@mbh.sh> | 2021-08-17 12:24:28 +1000 |
|---|---|---|
| committer | Michael Hall <michael@mbh.sh> | 2021-08-17 12:26:24 +1000 |
| commit | 51cf318dbcdd38d6a7478413513a72097d9622c3 (patch) | |
| tree | 439e8d28b261e02683b136d30f0b266149f8a3f9 /library/std/src/path | |
| parent | 1e759bef919e3600481839324ba02c637ec13ee1 (diff) | |
| download | rust-51cf318dbcdd38d6a7478413513a72097d9622c3.tar.gz rust-51cf318dbcdd38d6a7478413513a72097d9622c3.zip | |
remove unnecessary empty check
Diffstat (limited to 'library/std/src/path')
| -rw-r--r-- | library/std/src/path/tests.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/path/tests.rs b/library/std/src/path/tests.rs index d7ba4789391..e8b960e6d73 100644 --- a/library/std/src/path/tests.rs +++ b/library/std/src/path/tests.rs @@ -1127,6 +1127,8 @@ pub fn test_stem_ext() { t!(".x.y.z", file_stem: Some(".x.y"), extension: Some("z")); + t!("..x.y.z", file_stem: Some("..x.y"), extension: Some("z")); + t!("", file_stem: None, extension: None); } @@ -1168,6 +1170,8 @@ pub fn test_prefix_ext() { t!(".x.y.z", file_prefix: Some(".x"), extension: Some("z")); + t!("..x.y.z", file_prefix: Some("."), extension: Some("z")); + t!("", file_prefix: None, extension: None); } |
