+ CPPUNIT_ASSERT( COMPARE_4_VALUES( a5, wxT("x") ,
+ wxT("a") ,
+ wxT("a") ,
+ wxT("a") ) );
+
+ a5.assign(a1.end(), a1.end());
+ CPPUNIT_ASSERT( a5.empty() );
+
+ a5.assign(a1.begin(), a1.end());
+ CPPUNIT_ASSERT( a5 == a1 );
+
+#ifdef wxHAS_VECTOR_TEMPLATE_ASSIGN
+ const wxString months[] = { "Jan", "Feb", "Mar" };
+ a5.assign(months, months + WXSIZEOF(months));
+ CPPUNIT_ASSERT_EQUAL( WXSIZEOF(months), a5.size() );
+ CPPUNIT_ASSERT( COMPARE_3_VALUES(a5, "Jan", "Feb", "Mar") );
+#endif // wxHAS_VECTOR_TEMPLATE_ASSIGN
+
+ a5.clear();
+ CPPUNIT_ASSERT_EQUAL( 0, a5.size() );
+
+ a5.resize(7, "Foo");
+ CPPUNIT_ASSERT_EQUAL( 7, a5.size() );
+ CPPUNIT_ASSERT_EQUAL( "Foo", a5[3] );
+
+ a5.resize(3);
+ CPPUNIT_ASSERT_EQUAL( 3, a5.size() );
+ CPPUNIT_ASSERT_EQUAL( "Foo", a5[2] );