Skip to content

Commit e7d708d

Browse files
committed
fix windows test
1 parent 97dd6a9 commit e7d708d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsc_lib/src/functions/system_root.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ mod tests {
4444
let result = parser.parse_and_execute("[systemRoot()]", &Context::new()).unwrap();
4545
// on windows, the default is SYSTEMDRIVE env var
4646
#[cfg(target_os = "windows")]
47-
assert_eq!(result, std::env::var("SYSTEMDRIVE").unwrap());
47+
assert_eq!(result, format!("{}\\", std::env::var("SYSTEMDRIVE").unwrap()));
4848
// on linux/macOS, the default is /
4949
#[cfg(not(target_os = "windows"))]
5050
assert_eq!(result, "/");

0 commit comments

Comments
 (0)