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
m_dvc->GetSelections(sel);
// m_child1 and its children should be removed from the selection now
m_dvc->GetSelections(sel);
// 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 );
}
m_dvc->GetSelections(sel);
// m_child1 and its children should be removed from the selection now
m_dvc->GetSelections(sel);
// 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[1] == m_grandchild );
}
CPPUNIT_ASSERT( sel[0] == m_child1 );
CPPUNIT_ASSERT( sel[1] == m_grandchild );
}