no changes, just use CPPUNIT_ASSERT_EQUAL instead of CPPUNIT_ASSERT

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-10-29 12:25:32 +00:00
parent 958b430ac7
commit 7ee34f2be1

View File

@@ -474,26 +474,26 @@ void ArraysTestCase::wxObjArrayTest()
ArrayBars bars;
Bar bar(_T("first bar in general, second bar in array (two copies!)"));
CPPUNIT_ASSERT( bars.GetCount() == 0 );
CPPUNIT_ASSERT( Bar::GetNumber() == 1 );
CPPUNIT_ASSERT_EQUAL( 0, bars.GetCount() );
CPPUNIT_ASSERT_EQUAL( 1, Bar::GetNumber() );
bars.Add(new Bar(_T("first bar in array")));
bars.Add(bar,2);
CPPUNIT_ASSERT( bars.GetCount() == 3 );
CPPUNIT_ASSERT( Bar::GetNumber() == 4 );
CPPUNIT_ASSERT_EQUAL( 3, bars.GetCount() );
CPPUNIT_ASSERT_EQUAL( 4, Bar::GetNumber() );
bars.RemoveAt(1, bars.GetCount() - 1);
CPPUNIT_ASSERT( bars.GetCount() == 1 );
CPPUNIT_ASSERT( Bar::GetNumber() == 2 );
CPPUNIT_ASSERT_EQUAL( 1, bars.GetCount() );
CPPUNIT_ASSERT_EQUAL( 2, Bar::GetNumber() );
bars.Empty();
CPPUNIT_ASSERT( bars.GetCount() == 0 );
CPPUNIT_ASSERT( Bar::GetNumber() == 1 );
CPPUNIT_ASSERT_EQUAL( 0, bars.GetCount() );
CPPUNIT_ASSERT_EQUAL( 1, Bar::GetNumber() );
}
CPPUNIT_ASSERT( Bar::GetNumber() == 0 );
CPPUNIT_ASSERT_EQUAL( 0, Bar::GetNumber() );
}
#define TestArrayOf(name) \