Skip to content

Commit 0818083

Browse files
Fix windows paths
1 parent 0abcb8c commit 0818083

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/report/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -991,12 +991,12 @@ mod tests {
991991
TestResult::BuildFail(FailureReason::Unknown)
992992
);
993993
assert_eq!(
994-
(&gh_result.runs[0]).as_ref().unwrap().log.as_str(),
995-
"stable/gh/brson.hello-rs"
994+
Path::new((&gh_result.runs[0]).as_ref().unwrap().log.as_str()),
995+
Path::new("stable/gh/brson.hello-rs")
996996
);
997997
assert_eq!(
998-
(&gh_result.runs[1]).as_ref().unwrap().log.as_str(),
999-
"beta/gh/brson.hello-rs"
998+
Path::new((&gh_result.runs[1]).as_ref().unwrap().log.as_str()),
999+
Path::new("beta/gh/brson.hello-rs")
10001000
);
10011001

10021002
assert_eq!(reg_result.name.as_str(), "syn-1.0.0");
@@ -1014,12 +1014,12 @@ mod tests {
10141014
TestResult::BuildFail(FailureReason::Unknown)
10151015
);
10161016
assert_eq!(
1017-
(&reg_result.runs[0]).as_ref().unwrap().log.as_str(),
1018-
"stable/reg/syn-1.0.0"
1017+
Path::new((&reg_result.runs[0]).as_ref().unwrap().log.as_str()),
1018+
Path::new("stable/reg/syn-1.0.0")
10191019
);
10201020
assert_eq!(
1021-
(&reg_result.runs[1]).as_ref().unwrap().log.as_str(),
1022-
"beta/reg/syn-1.0.0"
1021+
Path::new((&reg_result.runs[1]).as_ref().unwrap().log.as_str()),
1022+
Path::new("beta/reg/syn-1.0.0")
10231023
);
10241024

10251025
assert_eq!(

0 commit comments

Comments
 (0)