get rid of special WX_ASSERT_FOO_EQUAL macros by defining CppUnit::assertEquals() overloads for wx types
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -79,16 +79,16 @@ void TextCtrlTestCase::SetValue()
|
||||
CPPUNIT_ASSERT( m_text->IsEmpty() );
|
||||
|
||||
m_text->SetValue("foo");
|
||||
WX_ASSERT_STR_EQUAL( "foo", m_text->GetValue() );
|
||||
CPPUNIT_ASSERT_EQUAL( "foo", m_text->GetValue() );
|
||||
|
||||
m_text->SetValue("");
|
||||
CPPUNIT_ASSERT( m_text->IsEmpty() );
|
||||
|
||||
m_text->SetValue("hi");
|
||||
WX_ASSERT_STR_EQUAL( "hi", m_text->GetValue() );
|
||||
CPPUNIT_ASSERT_EQUAL( "hi", m_text->GetValue() );
|
||||
|
||||
m_text->SetValue("bye");
|
||||
WX_ASSERT_STR_EQUAL( "bye", m_text->GetValue() );
|
||||
CPPUNIT_ASSERT_EQUAL( "bye", m_text->GetValue() );
|
||||
}
|
||||
|
||||
void TextCtrlTestCase::TextChangeEvents()
|
||||
|
Reference in New Issue
Block a user