diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-12 19:24:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-12 19:24:38 +0900 |
| commit | 0da2468d6b4ed4ef9f96cd3d50aa6e02da863da0 (patch) | |
| tree | 4790558d314e6ceb774a095e8144f20480017084 /test | |
| parent | 2e5d9b056f2cf398d8996d93a4c7fbc1fbe66221 (diff) | |
Removed strappend
Diffstat (limited to 'test')
| -rw-r--r-- | test/PeerTest.cc | 2 | ||||
| -rw-r--r-- | test/a2functionalTest.cc | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/test/PeerTest.cc b/test/PeerTest.cc index d984b406..484f0427 100644 --- a/test/PeerTest.cc +++ b/test/PeerTest.cc @@ -43,7 +43,7 @@ void PeerTest::testAmAllowedIndexSet() { } void PeerTest::testGetId() { - CPPUNIT_ASSERT_EQUAL(std::string("localhost:6969"), peer->getID()); + CPPUNIT_ASSERT_EQUAL(std::string("localhost(6969)"), peer->getID()); } void PeerTest::testOperatorEqual() diff --git a/test/a2functionalTest.cc b/test/a2functionalTest.cc index d4c77e07..8e803b41 100644 --- a/test/a2functionalTest.cc +++ b/test/a2functionalTest.cc @@ -14,14 +14,12 @@ class a2functionalTest:public CppUnit::TestFixture { CPPUNIT_TEST(testMemFunSh); CPPUNIT_TEST(testAdopt2nd); CPPUNIT_TEST(testStrjoin); - CPPUNIT_TEST(testStrappend); CPPUNIT_TEST(testLeastRecentAccess); CPPUNIT_TEST_SUITE_END(); public: void testMemFunSh(); void testAdopt2nd(); void testStrjoin(); - void testStrappend(); void testLeastRecentAccess(); class Greeting { @@ -98,13 +96,6 @@ void a2functionalTest::testStrjoin() strjoin(v.begin(), v.end(), " ")); } -void a2functionalTest::testStrappend() -{ - std::string str = "X="; - strappend(str, "3", ",Y=", "5"); - CPPUNIT_ASSERT_EQUAL(std::string("X=3,Y=5"), str); -} - void a2functionalTest::testLeastRecentAccess() { std::vector<LastAccess> v; |
