use CPPUNIT_ASSERT_EQUAL instead of CPPUNIT_ASSERT to have more details when the test fails
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -731,11 +731,11 @@ void DateTimeTestCase::TestTimeTicks()
|
|||||||
//into Vadim's tests
|
//into Vadim's tests
|
||||||
dt.MakeTimezone(wxDateTime::WEST, true);
|
dt.MakeTimezone(wxDateTime::WEST, true);
|
||||||
long ticks = (dt.GetValue() / 1000).ToLong();
|
long ticks = (dt.GetValue() / 1000).ToLong();
|
||||||
CPPUNIT_ASSERT( ticks == d.ticks );
|
CPPUNIT_ASSERT_EQUAL( d.ticks, ticks );
|
||||||
|
|
||||||
dt = d.DT().FromTimezone(wxDateTime::GMT0);
|
dt = d.DT().FromTimezone(wxDateTime::GMT0);
|
||||||
ticks = (dt.GetValue() / 1000).ToLong();
|
ticks = (dt.GetValue() / 1000).ToLong();
|
||||||
CPPUNIT_ASSERT( ticks == d.gmticks );
|
CPPUNIT_ASSERT_EQUAL( d.gmticks, ticks );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user