the-moisrex / webpp

C++ web framework | web development can be done with C++ as well.
https://t.me/webpp
MIT License
126 stars 9 forks source link

Structured URI Equality #516

Closed the-moisrex closed 4 months ago

the-moisrex commented 4 months ago
TYPED_TEST(StructuredURITests, StructuredURIEquality) {
    static TypeParam const data{get_one<TypeParam>("HTTPS://example.org/page/one#fragment", L"HtTPS://example.org/page/one#fragment")};

    uri::basic_uri<TypeParam> const url{data};
    EXPECT_TRUE(url.has_value());
    EXPECT_TRUE(url.has_scheme());
    EXPECT_EQ(url.scheme(), "https");
    EXPECT_EQ(url.hostname(), "EXAMPLE.ORG");
    EXPECT_EQ(url.path(), "/page/one");
    EXPECT_EQ(url.fragment(), "fragment");
}
the-moisrex commented 4 months ago

Done