From c97be4caabcfc5d720b948e28fb5ef3f1e5b9899 Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 9 Apr 2021 19:34:26 +0200 Subject: [PATCH] Added another client parse host_port test --- tests/parse_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/parse_test.cpp b/tests/parse_test.cpp index b6ea90c..dd07557 100644 --- a/tests/parse_test.cpp +++ b/tests/parse_test.cpp @@ -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");