]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/lists/lists.cpp
add GetSize also to wxGDIImage since wxBitmap under some ports derives from wxGDIImag...
[wxWidgets.git] / tests / lists / lists.cpp
index 16ea8a3d37ad9f46e2825050c43b0132efe73349..ac9964549042d6b1ad52341c82edcf798bba58e2 100644 (file)
@@ -61,7 +61,7 @@ public:
 
    static size_t GetNumber() { return ms_bars; }
 
-   const wxChar *GetName() const { return m_name; }
+   const wxChar *GetName() const { return m_name.c_str(); }
 
 private:
    wxString m_name;
@@ -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()