about summary refs log tree commit diff
path: root/library/std/src/path/tests.rs
diff options
context:
space:
mode:
authordylni <46035563+dylni@users.noreply.github.com>2022-03-19 10:30:34 -0400
committerdylni <46035563+dylni@users.noreply.github.com>2022-04-17 01:23:46 -0400
commite87082293e11a2f9c6d38bcd9896e8742e110ef8 (patch)
treef0c2a82bf1bffaabc8b3798208b1417669f1800a /library/std/src/path/tests.rs
parent2c28b0eaf9843ec0f493fca2dba506fe4d9174fb (diff)
downloadrust-e87082293e11a2f9c6d38bcd9896e8742e110ef8.tar.gz
rust-e87082293e11a2f9c6d38bcd9896e8742e110ef8.zip
Improve Windows path prefix parsing
Diffstat (limited to 'library/std/src/path/tests.rs')
-rw-r--r--library/std/src/path/tests.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/std/src/path/tests.rs b/library/std/src/path/tests.rs
index d1f59d2786e..0d8ea29c2be 100644
--- a/library/std/src/path/tests.rs
+++ b/library/std/src/path/tests.rs
@@ -971,15 +971,15 @@ pub fn test_decompositions_windows() {
     file_prefix: None
     );
 
-    t!("\\\\?\\C:/foo",
-    iter: ["\\\\?\\C:/foo"],
+    t!("\\\\?\\C:/foo/bar",
+    iter: ["\\\\?\\C:", "\\", "foo/bar"],
     has_root: true,
     is_absolute: true,
-    parent: None,
-    file_name: None,
-    file_stem: None,
+    parent: Some("\\\\?\\C:/"),
+    file_name: Some("foo/bar"),
+    file_stem: Some("foo/bar"),
     extension: None,
-    file_prefix: None
+    file_prefix: Some("foo/bar")
     );
 
     t!("\\\\.\\foo\\bar",