Skip to content

Commit

Permalink
Use header fields in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elnormous committed Mar 11, 2022
1 parent d2bb12e commit 96d1a4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/encoding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ TEST_CASE("Encode status line", "[serialization]")

TEST_CASE("Encode header", "[serialization]")
{
const auto result = http::encodeHeaders({
const auto result = http::encodeHeaderFields({
{"a", "b"}
});
REQUIRE(result == "a: b\r\n");
}

TEST_CASE("Encode header without value", "[serialization]")
{
const auto result = http::encodeHeaders({
const auto result = http::encodeHeaderFields({
{"a", ""}
});
REQUIRE(result == "a: \r\n");
}

TEST_CASE("Encode headers", "[serialization]")
{
const auto result = http::encodeHeaders({
const auto result = http::encodeHeaderFields({
{"a", "b"},
{"c", "d"}
});
Expand Down

0 comments on commit 96d1a4e

Please sign in to comment.