Skip to content

Commit 3ba89a4

Browse files
authored
Update test.cc
add test
1 parent fb9145a commit 3ba89a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10285,6 +10285,14 @@ TEST(UniversalClientImplTest, Ipv6LiteralAddress) {
1028510285
EXPECT_EQ(cli.port(), port);
1028610286
}
1028710287

10288+
TEST(UniversalClientImplHostTest, Ipv6LiteralAddressHost) {
10289+
std::string host = "[::1]";
10290+
std::string ipV6TestURL = "http://" + host;
10291+
10292+
Client cli(ipV6TestURL);
10293+
EXPECT_EQ(cli.host(), host);
10294+
}
10295+
1028810296
TEST(FileSystemTest, FileAndDirExistenceCheck) {
1028910297
auto file_path = "./www/dir/index.html";
1029010298
auto dir_path = "./www/dir";

0 commit comments

Comments
 (0)