]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/path/tests.rs
Rollup merge of #97264 - TaKO8Ki:suggest-extern-crate-when-failing-to-resolve-use...
[rust.git] / library / std / src / path / tests.rs
index d1f59d2786e91f05f9f5cfbcb2f7208b5d938eda..351cf698810f1faeb162150d4f586e3651b880fd 100644 (file)
@@ -7,6 +7,7 @@
 use crate::sync::Arc;
 use core::hint::black_box;
 
+#[allow(unknown_lints, unused_macro_rules)]
 macro_rules! t (
     ($path:expr, iter: $iter:expr) => (
         {
@@ -971,15 +972,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",