From c3ad4d4a455aed28178d8a22c305e1a4d6b23f23 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 22 Aug 2011 12:41:12 +0000 Subject: [PATCH] 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 --- tests/controls/dataviewctrltest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/controls/dataviewctrltest.cpp b/tests/controls/dataviewctrltest.cpp index 60d1a38270..a02aa313e7 100644 --- a/tests/controls/dataviewctrltest.cpp +++ b/tests/controls/dataviewctrltest.cpp @@ -115,7 +115,7 @@ void DataViewCtrlTestCase::DeleteSelected() 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 ); } @@ -132,7 +132,7 @@ void DataViewCtrlTestCase::DeleteNotSelected() 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 ); } -- 2.47.2