Skip to content

Commit

Permalink
set_start_line tests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
cmazakas committed Mar 7, 2024
1 parent c5f55df commit e5b8c16
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/unit/response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,23 @@ class response_test
res.set_start_line(199, "Huh", version::http_1_1);
check(res, status::unknown, 199, "Huh", version::http_1_1);
}
{
response res;
res.set_start_line(199, "Huh", version::http_1_1);
check(res, status::unknown, 199, "Huh", version::http_1_1);

res.set_start_line(199, "Huh", version::http_1_1);
check(res, status::unknown, 199, "Huh", version::http_1_1);

res.set_start_line(199, "ab", version::http_1_1);
check(res, status::unknown, 199, "ab", version::http_1_1);

res.set_start_line(199, "a", version::http_1_1);
check(res, status::unknown, 199, "a", version::http_1_1);

res.set_start_line(199, "abcdefghijklmnopqrstuvwxyz", version::http_1_1);
check(res, status::unknown, 199, "abcdefghijklmnopqrstuvwxyz", version::http_1_1);
}
{
core::string_view s =
"HTTP/1.1 200 OK\r\n"
Expand Down

0 comments on commit e5b8c16

Please sign in to comment.