Skip to content

Commit

Permalink
confirm that args parser (cli) works as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenDC committed Sep 5, 2024
1 parent c241c0e commit 3c15617
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/cli/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,14 @@ mod tests {
"description='CLI HTTP client'",
],
"POST / HTTP/1.1\r\ncontent-type: application/json\r\naccept: application/json\r\ncontent-length: 35\r\n\r\n{\"description\":\"'CLI HTTP client'\"}",
)
),
(
vec![
"example.com",
"x-cfg:a=1&foo=bar&foo=baz",
],
"GET / HTTP/1.1\r\nx-cfg: a=1&foo=bar&foo=baz\r\n\r\n",
),
] {
let mut builder = RequestArgsBuilder::new();
for arg in args {
Expand Down

0 comments on commit 3c15617

Please sign in to comment.