Kaydet (Commit) f17c5c77 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

use CPPUNIT_ASSERT_EQUAL to improve error message

Change-Id: I946f4177bef82bbac8058640f216a294582c24a3
üst f566585f
...@@ -356,7 +356,7 @@ void SdFiltersTest::testN828390_5() ...@@ -356,7 +356,7 @@ void SdFiltersTest::testN828390_5()
const EditTextObject& aEdit = pTxtObj->GetOutlinerParaObject()->GetTextObject(); const EditTextObject& aEdit = pTxtObj->GetOutlinerParaObject()->GetTextObject();
const SvxNumBulletItem *pNumFmt = dynamic_cast<const SvxNumBulletItem *>(aEdit.GetPool()->GetItem2(EE_PARA_NUMBULLET, 5)); const SvxNumBulletItem *pNumFmt = dynamic_cast<const SvxNumBulletItem *>(aEdit.GetPool()->GetItem2(EE_PARA_NUMBULLET, 5));
CPPUNIT_ASSERT( pNumFmt ); CPPUNIT_ASSERT( pNumFmt );
CPPUNIT_ASSERT_MESSAGE( "Bullet's relative size is wrong!", pNumFmt->GetNumRule()->GetLevel(1).GetBulletRelSize() == 75 ); // != 25 CPPUNIT_ASSERT_EQUAL_MESSAGE( "Bullet's relative size is wrong!", pNumFmt->GetNumRule()->GetLevel(1).GetBulletRelSize(), sal_uInt16(75) ); // != 25
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment