Skip to content

Commit 852c437

Browse files
author
Ubuntu
committed
Forcing test of assignment operator for http_endpoint
1 parent 8e7e234 commit 852c437

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/unit/http_endpoint_test.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,11 @@ LT_END_AUTO_TEST(http_endpoint_copy_constructor)
241241
242242
LT_BEGIN_AUTO_TEST(http_endpoint_suite, http_endpoint_assignment)
243243
http_endpoint a("/path/to/resource/with/{arg|([0-9]+)}/to/fetch", false, true, true);
244-
http_endpoint b = a;
244+
http_endpoint b("whatever/initial/value");
245+
246+
LT_CHECK_NEQ(a.get_url_complete(), b.get_url_complete());
247+
248+
b = a;
245249
246250
LT_CHECK_EQ(a.get_url_complete(), b.get_url_complete());
247251
LT_CHECK_EQ(a.get_url_normalized(), b.get_url_normalized());

0 commit comments

Comments
 (0)