diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/src/UriTests.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/src/UriTests.cpp b/test/src/UriTests.cpp index e3737c2..34e3483 100644 --- a/test/src/UriTests.cpp +++ b/test/src/UriTests.cpp @@ -292,6 +292,12 @@ TEST(UriTests, ParseFromStringSchemeMixedCase) { } } +TEST(UriTests, ParseFromStringHostEndsInDot) { + Uri::Uri uri; + ASSERT_TRUE(uri.ParseFromString("http://example.com./foo")); + ASSERT_EQ("example.com.", uri.GetHost()); +} + TEST(UriTests, ParseFromStringUserInfoIllegalCharacters) { const std::vector< std::string > testVectors{ {"//%X@www.example.com/"}, |