diff options
Diffstat (limited to 'http/ut')
-rw-r--r-- | http/ut/utility_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/http/ut/utility_test.cpp b/http/ut/utility_test.cpp index 4d9bd91105..8eef93f4a3 100644 --- a/http/ut/utility_test.cpp +++ b/http/ut/utility_test.cpp @@ -147,6 +147,12 @@ TEST(Utility, readUrlSegments) parsed = boost::urls::parse_relative_ref("not/absolute/url"); EXPECT_FALSE(readUrlSegments(*parsed, "not", "absolute", "url")); + + parsed = boost::urls::parse_relative_ref("/excellent/path"); + + EXPECT_TRUE(readUrlSegments(*parsed, "excellent", "path", OrMorePaths())); + EXPECT_TRUE(readUrlSegments(*parsed, "excellent", OrMorePaths())); + EXPECT_TRUE(readUrlSegments(*parsed, OrMorePaths())); } TEST(Utility, ValidateAndSplitUrlPositive) |