diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/src/UriTests.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/test/src/UriTests.cpp b/test/src/UriTests.cpp index 73848a9..2f8f28e 100644 --- a/test/src/UriTests.cpp +++ b/test/src/UriTests.cpp @@ -38,38 +38,6 @@ TEST(UriTests, ParseFromStringUrnDefaultPathDelimiter) { ); } -TEST(UriTests, ParseFromStringUrnSingleCharacterPathDelimiter) { - Uri::Uri uri; - uri.SetPathDelimiter(":"); - ASSERT_TRUE(uri.ParseFromString("urn:book:fantasy:Hobbit")); - ASSERT_EQ("urn", uri.GetScheme()); - ASSERT_EQ("", uri.GetHost()); - ASSERT_EQ( - (std::vector< std::string >{ - "book", - "fantasy", - "Hobbit", - }), - uri.GetPath() - ); -} - -TEST(UriTests, ParseFromStringUrnMultiCharacterPathDelimiter) { - Uri::Uri uri; - uri.SetPathDelimiter("/-"); - ASSERT_TRUE(uri.ParseFromString("urn:bo-/ok/-fant/asy/-Hob-bit")); - ASSERT_EQ("urn", uri.GetScheme()); - ASSERT_EQ("", uri.GetHost()); - ASSERT_EQ( - (std::vector< std::string >{ - "bo-/ok", - "fant/asy", - "Hob-bit", - }), - uri.GetPath() - ); -} - TEST(UriTests, ParseFromStringPathCornerCases) { struct TestVector { std::string pathIn; |