summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-23 09:40:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-23 09:40:38 +0200
commit2a8e751eb562700f1814fb9c254ba37b29c9e547 (patch)
tree086345522381015f1a1a568b345e6402323ca471
parentFix and enable CppunitTest_comphelper_syntaxhighlight_test (diff)
downloadcore-2a8e751eb562700f1814fb9c254ba37b29c9e547.tar.gz
core-2a8e751eb562700f1814fb9c254ba37b29c9e547.zip
Improve test
Change-Id: I54e939b7bca883f1c92c957c66ebf47259c92a46
-rw-r--r--comphelper/qa/unit/syntaxhighlighttest.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/comphelper/qa/unit/syntaxhighlighttest.cxx b/comphelper/qa/unit/syntaxhighlighttest.cxx
index 830e233190cf..8fab0677d4eb 100644
--- a/comphelper/qa/unit/syntaxhighlighttest.cxx
+++ b/comphelper/qa/unit/syntaxhighlighttest.cxx
@@ -41,6 +41,7 @@ void SyntaxHighlightTest::testBasicString()
aPortions.begin(), itrEnd = aPortions.end(); itr != itrEnd; ++itr)
{
CPPUNIT_ASSERT_EQUAL(prevEnd, itr->nBegin);
+ CPPUNIT_ASSERT(itr->nBegin < itr->nEnd);
prevEnd = itr->nEnd;
}
CPPUNIT_ASSERT_EQUAL(aBasicString.getLength(), prevEnd);