[Libreoffice-commits] core.git: comphelper/qa

Stephan Bergmann sbergman at redhat.com
Wed Oct 23 00:40:59 PDT 2013


 comphelper/qa/unit/syntaxhighlighttest.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 2a8e751eb562700f1814fb9c254ba37b29c9e547
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Oct 23 09:40:38 2013 +0200

    Improve test
    
    Change-Id: I54e939b7bca883f1c92c957c66ebf47259c92a46

diff --git a/comphelper/qa/unit/syntaxhighlighttest.cxx b/comphelper/qa/unit/syntaxhighlighttest.cxx
index 830e233..8fab067 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);


More information about the Libreoffice-commits mailing list