Added another client parse host_port test
This commit is contained in:
parent
bab4b309ca
commit
c97be4caab
1 changed files with 6 additions and 0 deletions
|
|
@ -154,6 +154,12 @@ int main() {
|
|||
ASSERT(clientTest.port == 8080);
|
||||
}
|
||||
|
||||
{
|
||||
ClientTest clientTest("test.org:test");
|
||||
ASSERT(clientTest.host == "test.org");
|
||||
ASSERT(clientTest.port == 80);
|
||||
}
|
||||
|
||||
{
|
||||
ClientTest clientTest("[::1]");
|
||||
ASSERT(clientTest.host == "::1");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue