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

Markus Mohrhard markus.mohrhard at googlemail.com
Sat Oct 1 11:24:26 UTC 2016


 sc/qa/unit/rangelst_test.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit dc41255dc725dfa912326cc5d9e420bd66471c64
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sat Oct 1 01:31:47 2016 +0200

    add test for tdf#101910
    
    Change-Id: I3c0b98655a0a7a32e9022ce44a007d2303590e56
    Reviewed-on: https://gerrit.libreoffice.org/29423
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/qa/unit/rangelst_test.cxx b/sc/qa/unit/rangelst_test.cxx
index b1b1712..1931a85 100644
--- a/sc/qa/unit/rangelst_test.cxx
+++ b/sc/qa/unit/rangelst_test.cxx
@@ -47,6 +47,7 @@ public:
     void testGetIntersectedRange();
 
     void testUpdateReference_DeleteRow();
+    void testUpdateReference_DeleteLastRow();
     void testUpdateReference_DeleteCol();
 
     void testInsertRow();
@@ -72,6 +73,7 @@ public:
     CPPUNIT_TEST(testJoin_Case1);
     CPPUNIT_TEST(testJoin_Case2);
     CPPUNIT_TEST(testUpdateReference_DeleteRow);
+    CPPUNIT_TEST(testUpdateReference_DeleteLastRow);
     CPPUNIT_TEST(testUpdateReference_DeleteCol);
     CPPUNIT_TEST(testGetIntersectedRange);
     CPPUNIT_TEST(testInsertRow);
@@ -443,6 +445,13 @@ void Test::testUpdateReference_DeleteRow()
     CPPUNIT_ASSERT(aList2.empty());
 }
 
+void Test::testUpdateReference_DeleteLastRow()
+{
+    ScRangeList aList(ScRange(1,1,0,4,4,0));
+    bool bUpdated = aList.UpdateReference(URM_INSDEL, m_pDoc, ScRange(0,4,0,MAXCOL,4,0), 0, -1, 0);
+    CPPUNIT_ASSERT(bUpdated);
+}
+
 void Test::testUpdateReference_DeleteCol()
 {
     ScRangeList aList(ScRange(1,1,0,4,4,0));


More information about the Libreoffice-commits mailing list