diff options
Diffstat (limited to 'comphelper/qa')
-rw-r--r-- | comphelper/qa/unit/syntaxhighlighttest.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/comphelper/qa/unit/syntaxhighlighttest.cxx b/comphelper/qa/unit/syntaxhighlighttest.cxx index d26b8556681d..8fab0677d4eb 100644 --- a/comphelper/qa/unit/syntaxhighlighttest.cxx +++ b/comphelper/qa/unit/syntaxhighlighttest.cxx @@ -41,11 +41,10 @@ void SyntaxHighlightTest::testBasicString() aPortions.begin(), itrEnd = aPortions.end(); itr != itrEnd; ++itr) { CPPUNIT_ASSERT_EQUAL(prevEnd, itr->nBegin); - //The comment is empty, so empty zone - CPPUNIT_ASSERT(itr->nBegin <= itr->nEnd); + CPPUNIT_ASSERT(itr->nBegin < itr->nEnd); prevEnd = itr->nEnd; } - CPPUNIT_ASSERT_EQUAL(aBasicString.getLength() - 1, prevEnd); + CPPUNIT_ASSERT_EQUAL(aBasicString.getLength(), prevEnd); } CPPUNIT_TEST_SUITE_REGISTRATION(SyntaxHighlightTest); |