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 97dd6a9 commit e7d708dCopy full SHA for e7d708d
dsc_lib/src/functions/system_root.rs
@@ -44,7 +44,7 @@ mod tests {
44
let result = parser.parse_and_execute("[systemRoot()]", &Context::new()).unwrap();
45
// on windows, the default is SYSTEMDRIVE env var
46
#[cfg(target_os = "windows")]
47
- assert_eq!(result, std::env::var("SYSTEMDRIVE").unwrap());
+ assert_eq!(result, format!("{}\\", std::env::var("SYSTEMDRIVE").unwrap()));
48
// on linux/macOS, the default is /
49
#[cfg(not(target_os = "windows"))]
50
assert_eq!(result, "/");
0 commit comments