1. added default constructors for wxString iterators
2. fixed assignment of iterator to iterator that points to a different string git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -33,6 +33,7 @@ public:
|
||||
private:
|
||||
CPPUNIT_TEST_SUITE( StdStringTestCase );
|
||||
CPPUNIT_TEST( StdConstructors );
|
||||
CPPUNIT_TEST( StdIterators );
|
||||
CPPUNIT_TEST( StdAppend );
|
||||
CPPUNIT_TEST( StdAssign );
|
||||
CPPUNIT_TEST( StdCompare );
|
||||
@@ -52,6 +53,7 @@ private:
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
|
||||
void StdConstructors();
|
||||
void StdIterators();
|
||||
void StdAppend();
|
||||
void StdAssign();
|
||||
void StdCompare();
|
||||
@@ -108,6 +110,15 @@ void StdStringTestCase::StdConstructors()
|
||||
WX_ASSERT_STR_EQUAL( "a", wxString(pw, pw + 1) );
|
||||
}
|
||||
|
||||
void StdStringTestCase::StdIterators()
|
||||
{
|
||||
// test compilation of default iterators ctors:
|
||||
wxString::iterator i1;
|
||||
wxString::const_iterator i2;
|
||||
wxString::reverse_iterator i3;
|
||||
wxString::const_reverse_iterator i4;
|
||||
}
|
||||
|
||||
void StdStringTestCase::StdAppend()
|
||||
{
|
||||
wxString s1, s2, s3, s4, s5, s6, s7, s8;
|
||||
|
Reference in New Issue
Block a user