enable all routing tests

This commit is contained in:
Adrian Wannenmacher 2022-12-06 11:56:16 +01:00
parent 3b088be9a6
commit b67b9feef0
No known key found for this signature in database
GPG key ID: 19D986ECB1E492D5

View file

@ -434,7 +434,6 @@ mod tests {
}
#[test]
#[ignore = "not yet implemented"]
fn no_fallback() {
let state = route_segment(
&test_segment(),
@ -446,22 +445,17 @@ mod tests {
let state = state.unwrap_left();
assert_eq!(
state.content,
vec![
ContentAtom("fallback"),
ContentAtom("keep route"),
ContentAtom("keep")
]
vec![ContentAtom("no fallback"), ContentAtom("keep route"),]
);
assert!(state.names.is_empty());
assert!(state.parameters.is_empty());
}
#[test]
#[ignore = "not yet implemented"]
fn no_fallback_with_clearing() {
let state = route_segment(
&test_segment(),
&["fallback", "clear", "invalid"],
&["no_fallback", "clear", "invalid"],
Default::default(),
);
assert!(state.is_left());