Kaydet (Commit) f10d88b4 authored tarafından Eike Rathke's avatar Eike Rathke

unit test for tdf#94514

Change-Id: I36f3eb19c096b838969ddd5ff10470f2c2e2f18f
üst 7df1b63b
...@@ -354,6 +354,10 @@ void Test::testFormulaParseReference() ...@@ -354,6 +354,10 @@ void Test::testFormulaParseReference()
nRes = aRange.Parse("2B:", m_pDoc, formula::FormulaGrammar::CONV_OOO); nRes = aRange.Parse("2B:", m_pDoc, formula::FormulaGrammar::CONV_OOO);
CPPUNIT_ASSERT_MESSAGE("Should fail to parse.", (nRes & SCA_VALID) == 0); 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); aRange.aStart.SetTab(0);
nRes = aRange.Parse("B:B", m_pDoc, formula::FormulaGrammar::CONV_OOO); nRes = aRange.Parse("B:B", m_pDoc, formula::FormulaGrammar::CONV_OOO);
CPPUNIT_ASSERT_MESSAGE("Failed to parse.", (nRes & SCA_VALID) != 0); CPPUNIT_ASSERT_MESSAGE("Failed to parse.", (nRes & SCA_VALID) != 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment