Kaydet (Commit) c7e046e6 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

CPPUNIT_ASSERT_EQUAL gives a more helpful error message

Change-Id: Ic7bc7d0298e6983e377b55f0362f34983de3df7a
üst b61642bb
...@@ -1475,7 +1475,7 @@ void testFuncINDIRECT(ScDocument* pDoc) ...@@ -1475,7 +1475,7 @@ void testFuncINDIRECT(ScDocument* pDoc)
for (size_t i = 0; i < SAL_N_ELEMENTS(aChecks); ++i) for (size_t i = 0; i < SAL_N_ELEMENTS(aChecks); ++i)
{ {
OUString aVal = pDoc->GetString(0, i, 0); OUString aVal = pDoc->GetString(0, i, 0);
CPPUNIT_ASSERT_MESSAGE("Wrong value!", aVal == *aChecks[i]); CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong value!", *aChecks[i], aVal);
} }
} }
......
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