]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/arrays/arrays.cpp
Updated list of subprojects.
[wxWidgets.git] / tests / arrays / arrays.cpp
index 79c3b97f72d195ba1a5813cf139137ecb1614f22..049fbf09ae081eb086f7ad3df202ac7f406ec82a 100644 (file)
@@ -274,6 +274,16 @@ void ArraysTestCase::wxStringArrayTest()
     CPPUNIT_ASSERT( a1.Index( _T("condor") ) == 2 );
     CPPUNIT_ASSERT( a1.Index( _T("thermit") ) == 3 );
     CPPUNIT_ASSERT( a1.Index( _T("alligator") ) == 4 );
     CPPUNIT_ASSERT( a1.Index( _T("condor") ) == 2 );
     CPPUNIT_ASSERT( a1.Index( _T("thermit") ) == 3 );
     CPPUNIT_ASSERT( a1.Index( _T("alligator") ) == 4 );
+
+    wxArrayString a5;
+
+    CPPUNIT_ASSERT( a5.Add( _T("x"), 1 ) == 0 );
+    CPPUNIT_ASSERT( a5.Add( _T("a"), 3 ) == 1 );
+
+    CPPUNIT_ASSERT( COMPARE_4_VALUES( a5, _T("x") ,
+                                          _T("a") ,
+                                          _T("a") ,
+                                          _T("a") ) );
 }
 
 void ArraysTestCase::wxObjArrayTest()
 }
 
 void ArraysTestCase::wxObjArrayTest()