summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-18 22:55:26 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-19 13:40:25 -0400
commitd6dbf417850e75cc3d4ac9e45ed9db3ffac507ed (patch)
tree25ee450a9dbe1f9ba3c30b8f4b4209bf568cb367 /sc/qa
parent292ffa80bc2665107d7011b2180c2659835d6c26 (diff)
Add accessor to ScDocument for formula cell's vectorization state.
Change-Id: I3c781764c6375dadb173bc5ab3cfb79857e2aeca
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/ucalc.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 6bde79796e52..f255781f4a77 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -1205,7 +1205,7 @@ void Test::testFormulaHashAndTag()
struct {
const char* pFormula1; const char* pFormula2; bool bEqual;
- } aTests[] = {
+ } aHashTests[] = {
{ "=1", "=2", false }, // different constants
{ "=SUM(1;2;3;4;5)", "=AVERAGE(1;2;3;4;5)", false }, // different functions
{ "=C2*3", "=D2*3", true }, // relative references
@@ -1221,16 +1221,16 @@ void Test::testFormulaHashAndTag()
{ "=X$20", "=$X20", false }, // column absolute vs row absolute
};
- for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
+ for (size_t i = 0; i < SAL_N_ELEMENTS(aHashTests); ++i)
{
- m_pDoc->SetString(aPos1, OUString::createFromAscii(aTests[i].pFormula1));
- m_pDoc->SetString(aPos2, OUString::createFromAscii(aTests[i].pFormula2));
+ m_pDoc->SetString(aPos1, OUString::createFromAscii(aHashTests[i].pFormula1));
+ m_pDoc->SetString(aPos2, OUString::createFromAscii(aHashTests[i].pFormula2));
size_t nHashVal1 = m_pDoc->GetFormulaHash(aPos1);
size_t nHashVal2 = m_pDoc->GetFormulaHash(aPos2);
std::ostringstream os;
- os << "(expr1:" << aTests[i].pFormula1 << "; expr2:" << aTests[i].pFormula2 << ")";
- if (aTests[i].bEqual)
+ os << "(expr1:" << aHashTests[i].pFormula1 << "; expr2:" << aHashTests[i].pFormula2 << ")";
+ if (aHashTests[i].bEqual)
{
os << " Error: these hashes should be equal." << endl;
CPPUNIT_ASSERT_MESSAGE(os.str().c_str(), nHashVal1 == nHashVal2);