svl/qa/unit/items/test_IndexedStyleSheets.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d5e6acc6db9f344c1831835e1eae52c2a0ee0d1d Author: Michael Stahl <mst...@redhat.com> Date: Wed Jul 23 14:45:42 2014 +0200 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 diff --git a/svl/qa/unit/items/test_IndexedStyleSheets.cxx b/svl/qa/unit/items/test_IndexedStyleSheets.cxx index 25944e2..2b9f539 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits