diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-07-23 14:45:42 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-07-23 14:46:34 +0200 |
commit | d5e6acc6db9f344c1831835e1eae52c2a0ee0d1d (patch) | |
tree | efac5da6938a0f4a27741a9a6a4512e44da5fdb6 /svl | |
parent | 66c09dd2500ae000ba393d645e03d470a26011c4 (diff) |
svl: fix comparison in new unit test
Presumably the test should use the unused variable w, and the result
should be 3 since that's how many styles were inserted.
Change-Id: I34455020e1fb8c53204b6ee0632138c1077617a2
Diffstat (limited to 'svl')
-rw-r--r-- | svl/qa/unit/items/test_IndexedStyleSheets.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/qa/unit/items/test_IndexedStyleSheets.cxx b/svl/qa/unit/items/test_IndexedStyleSheets.cxx index 25944e29cc94..2b9f539c5958 100644 --- a/svl/qa/unit/items/test_IndexedStyleSheets.cxx +++ b/svl/qa/unit/items/test_IndexedStyleSheets.cxx @@ -205,7 +205,7 @@ void IndexedStyleSheetsTest::OnlyOneStyleSheetIsReturnedWhenReturnFirstIsUsed() std::vector<unsigned> w = iss.FindPositionsByNameAndPredicate(name, predicate, IndexedStyleSheets::RETURN_ALL); - CPPUNIT_ASSERT_EQUAL_MESSAGE("All style sheets are returned.", static_cast<size_t>(1), v.size()); + CPPUNIT_ASSERT_EQUAL_MESSAGE("All style sheets are returned.", static_cast<size_t>(3), w.size()); } CPPUNIT_TEST_SUITE_REGISTRATION(IndexedStyleSheetsTest); |