fix the bug in insert(end(), value) and added unit test for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -157,6 +157,14 @@ void ListsTestCase::wxStdListTest()
|
||||
{
|
||||
CPPUNIT_ASSERT( *it == i + &i );
|
||||
}
|
||||
|
||||
list1.clear();
|
||||
CPPUNIT_ASSERT( list1.empty() );
|
||||
|
||||
list1.insert(list1.end(), (int *)1);
|
||||
list1.insert(list1.end(), (int *)2);
|
||||
CPPUNIT_ASSERT_EQUAL( (int *)1, list1.front() );
|
||||
CPPUNIT_ASSERT_EQUAL( (int *)2, list1.back() );
|
||||
}
|
||||
|
||||
void ListsTestCase::wxListCtorTest()
|
||||
|
Reference in New Issue
Block a user