summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-10-14 14:19:56 +0200
committerEike Rathke <erack@redhat.com>2015-10-14 14:20:58 +0200
commitf10d88b436383beebf5cbc7387fa23f6e7d8f919 (patch)
tree53831d75bbd6320ea3c0a9d5cb1ab889ca376156
parent7df1b63be25d7b7eaeccb3b13a81b4370240bc10 (diff)
unit test for tdf#94514
Change-Id: I36f3eb19c096b838969ddd5ff10470f2c2e2f18f
-rw-r--r--sc/qa/unit/ucalc_formula.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 791fe6563f3d..c631e1e36018 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -355,6 +355,10 @@ void Test::testFormulaParseReference()
CPPUNIT_ASSERT_MESSAGE("Should fail to parse.", (nRes & SCA_VALID) == 0);
aRange.aStart.SetTab(0);
+ nRes = aRange.Parse("abc_foo:abc_bar", m_pDoc, formula::FormulaGrammar::CONV_OOO);
+ CPPUNIT_ASSERT_MESSAGE("Should fail to parse.", (nRes & SCA_VALID) == 0);
+
+ aRange.aStart.SetTab(0);
nRes = aRange.Parse("B:B", m_pDoc, formula::FormulaGrammar::CONV_OOO);
CPPUNIT_ASSERT_MESSAGE("Failed to parse.", (nRes & SCA_VALID) != 0);
CPPUNIT_ASSERT_EQUAL(static_cast<SCTAB>(0), aRange.aStart.Tab());