We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fe6175 commit c37e448Copy full SHA for c37e448
1 file changed
library/std/tests/env.rs
@@ -59,6 +59,23 @@ fn split_paths_unix() {
59
assert!(check_parse("/:/usr/local", &mut ["/", "/usr/local"]));
60
}
61
62
+#[test]
63
+#[cfg(target_os = "uefi")]
64
+fn split_paths_uefi() {
65
+ use std::path::PathBuf;
66
+
67
+ fn check_parse(unparsed: &str, parsed: &[&str]) -> bool {
68
+ split_paths(unparsed).collect::<Vec<_>>()
69
+ == parsed.iter().map(|s| PathBuf::from(*s)).collect::<Vec<_>>()
70
+ }
71
72
+ assert!(check_parse("", &mut [""]));
73
+ assert!(check_parse(";;", &mut ["", "", ""]));
74
+ assert!(check_parse(r"fs0:\", &mut [r"fs0:\"]));
75
+ assert!(check_parse(r"fs0:\;", &mut [r"fs0:\", ""]));
76
+ assert!(check_parse(r"fs0:\;fs0:\boot\", &mut [r"fs0:\", r"fs0:\boot\"]));
77
+}
78
79
#[test]
80
#[cfg(unix)]
81
fn join_paths_unix() {
0 commit comments