Skip to content

Commit

Permalink
tests: Add more unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tectu committed Dec 26, 2023
1 parent a23afd1 commit b4e8ccb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test_suites/components/utils_core_http.cpp
Expand Up @@ -15,6 +15,20 @@ TEST_SUITE("components - utils - core - http")
}

SUBCASE("regular 1")
{
const auto& output = http::split_header_value("foo");
REQUIRE_EQ(output.size(), 1);
CHECK_EQ(output[0], "foo");
}

SUBCASE("regular 2")
{
const auto& output = http::split_header_value("foo; ");
REQUIRE_EQ(output.size(), 1);
CHECK_EQ(output[0], "foo");
}

SUBCASE("regular 3")
{
const std::string input{ "multipart/form-data; boundary=----WebKitFormBoundarynBjZTMv9eqwyCWhj" };

Expand Down

0 comments on commit b4e8ccb

Please sign in to comment.