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:
Vadim Zeitlin
2008-10-14 09:04:52 +00:00
parent b547eb0f86
commit b9f9065e28
2 changed files with 13 additions and 2 deletions

View File

@@ -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()