No changes, just use CPPUNIT_ASSERT_EQUAL() instead of CPPUNIT_ASSERT().
CPPUNIT_ASSERT_EQUAL() gives more informative error messages in case of failure which is important when running tests unattended on build slaves. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -115,7 +115,7 @@ void DataViewCtrlTestCase::DeleteSelected()
|
|||||||
m_dvc->GetSelections(sel);
|
m_dvc->GetSelections(sel);
|
||||||
|
|
||||||
// m_child1 and its children should be removed from the selection now
|
// m_child1 and its children should be removed from the selection now
|
||||||
CPPUNIT_ASSERT( sel.size() == 1 );
|
CPPUNIT_ASSERT_EQUAL( 1, sel.size() );
|
||||||
CPPUNIT_ASSERT( sel[0] == m_child2 );
|
CPPUNIT_ASSERT( sel[0] == m_child2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,7 +132,7 @@ void DataViewCtrlTestCase::DeleteNotSelected()
|
|||||||
m_dvc->GetSelections(sel);
|
m_dvc->GetSelections(sel);
|
||||||
|
|
||||||
// m_child1 and its children should be removed from the selection now
|
// m_child1 and its children should be removed from the selection now
|
||||||
CPPUNIT_ASSERT( sel.size() == 2 );
|
CPPUNIT_ASSERT_EQUAL( 2, sel.size() );
|
||||||
CPPUNIT_ASSERT( sel[0] == m_child1 );
|
CPPUNIT_ASSERT( sel[0] == m_child1 );
|
||||||
CPPUNIT_ASSERT( sel[1] == m_grandchild );
|
CPPUNIT_ASSERT( sel[1] == m_grandchild );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user