Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dkim19375 committed Oct 15, 2023
1 parent 1d33c1c commit 9887362
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/internal/request/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,17 @@ mod tests {
}

#[test]
#[should_panic(expected = "Cannot have a path with a parameter key right after another parameter key (parameter value required)")]
#[should_panic(
expected = "Cannot have a path with a parameter key right after another parameter key (parameter value required)"
)]
fn invalid_path_with_skipped_param_value() {
create_path(&["/test", "test2=", "test3="]);
}

#[test]
#[should_panic(expected = "Cannot have a path with a parameter key at the end of the path (parameter value required)")]
#[should_panic(
expected = "Cannot have a path with a parameter key at the end of the path (parameter value required)"
)]
fn invalid_path_with_no_param_value() {
create_path(&["/test", "test2="]);
}
Expand Down

0 comments on commit 9887362

Please sign in to comment.