comphelper/qa/unit/syntaxhighlighttest.cxx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-)
New commits: commit 2c6b6ba446868dc549f39b12c27cbd73f7eff572 Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Oct 28 14:31:16 2013 +0100 Disambiguate CPPUNIT_ASSERT_EQUAL arguments Change-Id: Ib32d59522f33bcd2608401b4f3d3529d9dee5642 diff --git a/comphelper/qa/unit/syntaxhighlighttest.cxx b/comphelper/qa/unit/syntaxhighlighttest.cxx index cf13cbb..61449f9 100644 --- a/comphelper/qa/unit/syntaxhighlighttest.cxx +++ b/comphelper/qa/unit/syntaxhighlighttest.cxx @@ -43,8 +43,8 @@ void SyntaxHighlightTest::testBasicString() { SyntaxHighlighter(HIGHLIGHT_BASIC).getHighlightPortions(s, ps); CPPUNIT_ASSERT_EQUAL( static_cast<std::vector<HighlightPortion>::size_type>(1), ps.size()); - CPPUNIT_ASSERT_EQUAL(0, ps[0].nBegin); - CPPUNIT_ASSERT_EQUAL(5, ps[0].nEnd); + CPPUNIT_ASSERT_EQUAL(sal_Int32(0), ps[0].nBegin); + CPPUNIT_ASSERT_EQUAL(sal_Int32(5), ps[0].nEnd); CPPUNIT_ASSERT_EQUAL(TT_STRING, ps[0].tokenType); } @@ -54,8 +54,8 @@ void SyntaxHighlightTest::testBasicComment() { SyntaxHighlighter(HIGHLIGHT_BASIC).getHighlightPortions(s, ps); CPPUNIT_ASSERT_EQUAL( static_cast<std::vector<HighlightPortion>::size_type>(1), ps.size()); - CPPUNIT_ASSERT_EQUAL(0, ps[0].nBegin); - CPPUNIT_ASSERT_EQUAL(5, ps[0].nEnd); + CPPUNIT_ASSERT_EQUAL(sal_Int32(0), ps[0].nBegin); + CPPUNIT_ASSERT_EQUAL(sal_Int32(5), ps[0].nEnd); CPPUNIT_ASSERT_EQUAL(TT_COMMENT, ps[0].tokenType); } @@ -65,11 +65,11 @@ void SyntaxHighlightTest::testBasicCommentNewline() { SyntaxHighlighter(HIGHLIGHT_BASIC).getHighlightPortions(s, ps); CPPUNIT_ASSERT_EQUAL( static_cast<std::vector<HighlightPortion>::size_type>(2), ps.size()); - CPPUNIT_ASSERT_EQUAL(0, ps[0].nBegin); - CPPUNIT_ASSERT_EQUAL(5, ps[0].nEnd); + CPPUNIT_ASSERT_EQUAL(sal_Int32(0), ps[0].nBegin); + CPPUNIT_ASSERT_EQUAL(sal_Int32(5), ps[0].nEnd); CPPUNIT_ASSERT_EQUAL(TT_COMMENT, ps[0].tokenType); - CPPUNIT_ASSERT_EQUAL(5, ps[1].nBegin); - CPPUNIT_ASSERT_EQUAL(6, ps[1].nEnd); + CPPUNIT_ASSERT_EQUAL(sal_Int32(5), ps[1].nBegin); + CPPUNIT_ASSERT_EQUAL(sal_Int32(6), ps[1].nEnd); CPPUNIT_ASSERT_EQUAL(TT_EOL, ps[1].tokenType); } @@ -79,8 +79,8 @@ void SyntaxHighlightTest::testBasicEmptyComment() { SyntaxHighlighter(HIGHLIGHT_BASIC).getHighlightPortions(s, ps); CPPUNIT_ASSERT_EQUAL( static_cast<std::vector<HighlightPortion>::size_type>(1), ps.size()); - CPPUNIT_ASSERT_EQUAL(0, ps[0].nBegin); - CPPUNIT_ASSERT_EQUAL(1, ps[0].nEnd); + CPPUNIT_ASSERT_EQUAL(sal_Int32(0), ps[0].nBegin); + CPPUNIT_ASSERT_EQUAL(sal_Int32(1), ps[0].nEnd); CPPUNIT_ASSERT_EQUAL(TT_COMMENT, ps[0].tokenType); } @@ -90,11 +90,11 @@ void SyntaxHighlightTest::testBasicEmptyCommentNewline() { SyntaxHighlighter(HIGHLIGHT_BASIC).getHighlightPortions(s, ps); CPPUNIT_ASSERT_EQUAL( static_cast<std::vector<HighlightPortion>::size_type>(2), ps.size()); - CPPUNIT_ASSERT_EQUAL(0, ps[0].nBegin); - CPPUNIT_ASSERT_EQUAL(1, ps[0].nEnd); + CPPUNIT_ASSERT_EQUAL(sal_Int32(0), ps[0].nBegin); + CPPUNIT_ASSERT_EQUAL(sal_Int32(1), ps[0].nEnd); CPPUNIT_ASSERT_EQUAL(TT_COMMENT, ps[0].tokenType); - CPPUNIT_ASSERT_EQUAL(1, ps[1].nBegin); - CPPUNIT_ASSERT_EQUAL(2, ps[1].nEnd); + CPPUNIT_ASSERT_EQUAL(sal_Int32(1), ps[1].nBegin); + CPPUNIT_ASSERT_EQUAL(sal_Int32(2), ps[1].nEnd); CPPUNIT_ASSERT_EQUAL(TT_EOL, ps[1].tokenType); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits