X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3f2384e48ab8d8532e364b3762b0b3ac689e650..eaba6eba3a1ca393e6ecbafa601cc3b54e705901:/tests/arrays/arrays.cpp

diff --git a/tests/arrays/arrays.cpp b/tests/arrays/arrays.cpp
index 79c3b97f72..049fbf09ae 100644
--- a/tests/arrays/arrays.cpp
+++ b/tests/arrays/arrays.cpp
@@ -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 );
+
+    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()