Kaydet (Commit) d646612f authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Narrow it down a bit for the next visit.

Still no idea what the problem really is (MSVC is pretty silent about it)
or how to fix it.

Change-Id: I322779046f0adc0b2807a9d46a5c9140839b7ff7
üst 845893cd
...@@ -33,7 +33,6 @@ using namespace formula; ...@@ -33,7 +33,6 @@ using namespace formula;
void Test::testFormulaCreateStringFromTokens() void Test::testFormulaCreateStringFromTokens()
{ {
#if 0
// Insert sheets. // Insert sheets.
OUString aTabName1("Test"); OUString aTabName1("Test");
OUString aTabName2("Kevin's Data"); OUString aTabName2("Kevin's Data");
...@@ -138,18 +137,19 @@ void Test::testFormulaCreateStringFromTokens() ...@@ -138,18 +137,19 @@ void Test::testFormulaCreateStringFromTokens()
OUString aFormula = OUString::createFromAscii(aTests[i]); OUString aFormula = OUString::createFromAscii(aTests[i]);
ScCompiler aComp(m_pDoc, aPos); ScCompiler aComp(m_pDoc, aPos);
aComp.SetGrammar(FormulaGrammar::GRAM_ENGLISH); aComp.SetGrammar(FormulaGrammar::GRAM_ENGLISH);
#if 0 // TODO: This call to CompileString() causes the cppunittester to somehow fail on Windows.
pArray.reset(aComp.CompileString(aFormula)); pArray.reset(aComp.CompileString(aFormula));
CPPUNIT_ASSERT_MESSAGE("Failed to compile formula string.", pArray.get()); CPPUNIT_ASSERT_MESSAGE("Failed to compile formula string.", pArray.get());
OUString aCheck = pArray->CreateString(aCxt, aPos); OUString aCheck = pArray->CreateString(aCxt, aPos);
CPPUNIT_ASSERT_EQUAL(aFormula, aCheck); CPPUNIT_ASSERT_EQUAL(aFormula, aCheck);
#endif
} }
m_pDoc->DeleteTab(3); m_pDoc->DeleteTab(3);
m_pDoc->DeleteTab(2); m_pDoc->DeleteTab(2);
m_pDoc->DeleteTab(1); m_pDoc->DeleteTab(1);
m_pDoc->DeleteTab(0); m_pDoc->DeleteTab(0);
#endif
} }
namespace { namespace {
......
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