sc/qa/unit/ucalc_formula.cxx | 4 ++++ 1 file changed, 4 insertions(+) New commits: commit f10d88b436383beebf5cbc7387fa23f6e7d8f919 Author: Eike Rathke <er...@redhat.com> Date: Wed Oct 14 14:19:56 2015 +0200
unit test for tdf#94514 Change-Id: I36f3eb19c096b838969ddd5ff10470f2c2e2f18f diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index 791fe65..c631e1e 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()); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits