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

Eike Rathke erack at redhat.com
Tue Nov 22 00:06:47 UTC 2016


 sc/qa/unit/ucalc_formula.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit f1034343b4a8fe5b540d07029cd97bba7208c9b5
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Nov 22 00:04:16 2016 +0100

    unit test for tdf#104096, ScRange::Parse() with trailing characters
    
    Change-Id: I5df087b0ad25b78c6badf72afba6c189e48ec7ca

diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index cb4b3f4..cb5d835 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -364,6 +364,10 @@ void Test::testFormulaParseReference()
     CPPUNIT_ASSERT_MESSAGE("Should fail to parse.", !(nRes & ScRefFlags::VALID));
 
     aRange.aStart.SetTab(0);
+    nRes = aRange.Parse("B1:B2~C1", m_pDoc, formula::FormulaGrammar::CONV_OOO);
+    CPPUNIT_ASSERT_MESSAGE("Should fail to parse.", !(nRes & ScRefFlags::VALID));
+
+    aRange.aStart.SetTab(0);
     nRes = aRange.Parse("B:B", m_pDoc, formula::FormulaGrammar::CONV_OOO);
     CPPUNIT_ASSERT_MESSAGE("Failed to parse.", (nRes & ScRefFlags::VALID));
     CPPUNIT_ASSERT_EQUAL(static_cast<SCTAB>(0), aRange.aStart.Tab());


More information about the Libreoffice-commits mailing list