summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-05-16 06:30:18 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-05-16 07:26:39 +0200
commite9a206c8d7533ba8ccf8ad5f4e3e76557850459e (patch)
tree40daab092a17bcd51e9638a67c126316bfc2ba95 /sc
parent087932a9a41098a127e4a9668a77072b49f19909 (diff)
improve asserts to catch more errors
Change-Id: I9cd3c093af8f9f71c133ad89c45f2f9d46d64c01
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/subsequent_filters-test.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 1ec7460dd4bd..849ac9f3f300 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -2367,7 +2367,10 @@ void ScFiltersTest::testCondFormatThemeColorXLSX()
CPPUNIT_ASSERT(pDataBarFormatData->mpNegativeColor.get());
CPPUNIT_ASSERT_EQUAL(Color(COL_LIGHTRED), *pDataBarFormatData->mpNegativeColor.get());
+ CPPUNIT_ASSERT_EQUAL(size_t(1), rDoc.GetCondFormList(1)->size());
pFormat = rDoc.GetCondFormat(0, 0, 1);
+ CPPUNIT_ASSERT(pFormat);
+ CPPUNIT_ASSERT_EQUAL(size_t(1), pFormat->size());
pEntry = pFormat->GetEntry(0);
CPPUNIT_ASSERT(pEntry);
CPPUNIT_ASSERT_EQUAL(pEntry->GetType(), condformat::COLORSCALE);