[Libreoffice-commits] core.git: comphelper/qa
Stephan Bergmann
sbergman at redhat.com
Mon Oct 28 06:32:01 PDT 2013
comphelper/qa/unit/syntaxhighlighttest.cxx | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
New commits:
commit 2c6b6ba446868dc549f39b12c27cbd73f7eff572
Author: Stephan Bergmann <sbergman at 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);
}
More information about the Libreoffice-commits
mailing list