mirror of
https://github.com/actix/actix-web.git
synced 2024-11-25 11:01:14 +00:00
add test for duplicate dynamic segent name
This commit is contained in:
parent
bcbbc115aa
commit
9bdd334bb4
1 changed files with 6 additions and 0 deletions
|
@ -1770,6 +1770,12 @@ mod tests {
|
|||
match_methods_agree!(["/v{v}", "/ver/{v}"] => "", "s/v", "/v1", "/v1/xx", "/ver/i3/5", "/ver/1");
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic]
|
||||
fn duplicate_segment_name() {
|
||||
ResourceDef::new("/user/{id}/post/{id}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic]
|
||||
fn invalid_dynamic_segment_delimiter() {
|
||||
|
|
Loading…
Reference in a new issue