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

Add dot to path parser #517

Open the-moisrex opened 4 months ago

the-moisrex commented 4 months ago
TYPED_TEST(StructuredURITests, AddDotToPath) {
    static TypeParam const data{get_one<TypeParam>("non-spec:/", L"non-spec:/")};

    uri::basic_uri<TypeParam> url{data};
    // EXPECT_TRUE(url);
    url.path(get_one<TypeParam>("//p", L"//p"));
    EXPECT_EQ(url.path(), get_one<TypeParam>("//p", L"//p"));
    EXPECT_EQ(url.as_string(), get_one<TypeParam>("non-spec:/.//p", L"non-spec:/.//p"));
}