mirror of https://github.com/fafhrd91/actix-web
lol
This commit is contained in:
parent
405663cf48
commit
f264a8ace3
|
@ -66,7 +66,11 @@ impl PathBufWrap {
|
||||||
|
|
||||||
// make sure we agree with stdlib parser
|
// make sure we agree with stdlib parser
|
||||||
for (i, component) in buf.components().enumerate() {
|
for (i, component) in buf.components().enumerate() {
|
||||||
assert!(matches!(component, Component::Normal(_)));
|
assert!(
|
||||||
|
matches!(component, Component::Normal(_)),
|
||||||
|
"component `{:?}` is not normal",
|
||||||
|
component
|
||||||
|
);
|
||||||
assert!(i < segment_count);
|
assert!(i < segment_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,8 +172,8 @@ mod tests {
|
||||||
);
|
);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
PathBufWrap::parse_path("C:../whatever", false).unwrap().0,
|
PathBufWrap::parse_path("D:../whatever", false).unwrap().0,
|
||||||
PathBuf::from_iter(vec!["C:../whatever"])
|
PathBuf::from_iter(vec!["D:../whatever"])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue