summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-11-22 00:04:16 +0100
committerEike Rathke <erack@redhat.com>2016-11-22 01:06:09 +0100
commitf1034343b4a8fe5b540d07029cd97bba7208c9b5 (patch)
tree4dbcddf88023dba90410c45841c4faa802c6e9bd /sc/qa
parent5a4e106be6778f7e96fa36d2076ef4e7a90f81d9 (diff)
unit test for tdf#104096, ScRange::Parse() with trailing characters
Change-Id: I5df087b0ad25b78c6badf72afba6c189e48ec7ca
Diffstat (limited to 'sc/qa')
-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 cb4b3f4128e1..cb5d8351ac21 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());