summaryrefslogtreecommitdiff
path: root/test/test_util.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-23 21:38:07 +0200
committerMax Kellermann <max@duempel.org>2013-10-23 21:58:44 +0200
commit3d12f8d2466d6a000bb116b4363a695c862ab52d (patch)
tree21d7e2010685edf9ed8254aeff32c56cb7a8f3df /test/test_util.cxx
parentc3e720279c89a56b9bbdc46cc6d8c02aefb10ed4 (diff)
UriUtil: uri_remove_auth() returns std::string
Diffstat (limited to 'test/test_util.cxx')
-rw-r--r--test/test_util.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_util.cxx b/test/test_util.cxx
index eaa64f3e3..6ed4d9e82 100644
--- a/test/test_util.cxx
+++ b/test/test_util.cxx
@@ -31,13 +31,13 @@ public:
}
void TestRemoveAuth() {
- CPPUNIT_ASSERT_EQUAL((char *)nullptr,
+ CPPUNIT_ASSERT_EQUAL(std::string(),
uri_remove_auth("http://www.example.com/"));
- CPPUNIT_ASSERT_EQUAL(0, strcmp(uri_remove_auth("http://foo:bar@www.example.com/"),
- "http://www.example.com/"));
- CPPUNIT_ASSERT_EQUAL(0, strcmp(uri_remove_auth("http://foo@www.example.com/"),
- "http://www.example.com/"));
- CPPUNIT_ASSERT_EQUAL((char *)nullptr,
+ CPPUNIT_ASSERT_EQUAL(std::string("http://www.example.com/"),
+ uri_remove_auth("http://foo:bar@www.example.com/"));
+ CPPUNIT_ASSERT_EQUAL(std::string("http://www.example.com/"),
+ uri_remove_auth("http://foo@www.example.com/"));
+ CPPUNIT_ASSERT_EQUAL(std::string(),
uri_remove_auth("http://www.example.com/f:oo@bar"));
}
};