summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2019-08-11 19:32:51 +0200
committerJulien Nabet <serval2412@yahoo.fr>2019-08-12 11:04:14 +0200
commitfb9a5d891a1211da7746fe26061937ec491cbb71 (patch)
treecbf74c628a1afe99afeca4ce175c71264a16c456 /sc/qa
parentd443cd31f3845b0eccd65c9a354e8e9b6edfa07e (diff)
Fix typos
Change-Id: Id5e35965c590dbf79e08e6d531b79696af9e9159 Reviewed-on: https://gerrit.libreoffice.org/77300 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/ucalc.hxx2
-rw-r--r--sc/qa/unit/ucalc_formula.cxx22
-rw-r--r--sc/qa/unit/ucalc_sharedformula.cxx2
-rw-r--r--sc/qa/unit/ucalc_sort.cxx2
4 files changed, 14 insertions, 14 deletions
diff --git a/sc/qa/unit/ucalc.hxx b/sc/qa/unit/ucalc.hxx
index ba85b9b78042..d5b0bdf7ab28 100644
--- a/sc/qa/unit/ucalc.hxx
+++ b/sc/qa/unit/ucalc.hxx
@@ -518,7 +518,7 @@ public:
void testFormulaListenerUpdateDeleteTab();
// Check that the Listeners are correctly updated when we
- // call a operation
+ // call an operation
void testCondFormatUpdateMoveTab();
void testCondFormatUpdateDeleteTab();
void testCondFormatUpdateInsertTab();
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 716ac8defa5c..88ff18333622 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -7854,11 +7854,11 @@ void Test::testFuncGCD()
CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of GCD for failed", 150.0, m_pDoc->GetValue(aPos));
m_pDoc->SetString(aPos, "=GCD({-3;6;9})");
aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for a array with values less then 0",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for an array with values less then 0",
OUString("Err:502"), aVal);
m_pDoc->SetString(aPos, "=GCD({\"a\";6;9})");
aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for a array with strings",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for an array with strings",
OUString("Err:502"), aVal);
//many inline array
@@ -7868,11 +7868,11 @@ void Test::testFuncGCD()
CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of GCD for failed", 150.0, m_pDoc->GetValue(aPos));
m_pDoc->SetString(aPos,"=GCD({3;6;9};{3;-6;9})");
aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for a array with values less then 0",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for an array with values less then 0",
OUString("Err:502"), aVal);
m_pDoc->SetString(aPos, "=GCD({3;6;9};{\"a\";6;9})");
aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for a array with strings",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for an array with strings",
OUString("Err:502"), aVal);
// inline list of values
@@ -7882,7 +7882,7 @@ void Test::testFuncGCD()
CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of GCD for failed", 12.0, m_pDoc->GetValue(aPos));
m_pDoc->SetString(aPos, "=GCD(\"a\";1)");
aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return #VALUE! for a array with strings",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return #VALUE! for an array with strings",
OUString("#VALUE!"), aVal);
m_pDoc->DeleteTab(0);
@@ -7951,11 +7951,11 @@ void Test::testFuncLCM()
CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of LCM for failed", 0.0, m_pDoc->GetValue(aPos));
m_pDoc->SetString(aPos, "=LCM({-3;6;9})");
aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for a array with values less then 0",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for an array with values less then 0",
OUString("Err:502"), aVal);
m_pDoc->SetString(aPos, "=LCM({\"a\";6;9})");
aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for a array with strings",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for an array with strings",
OUString("Err:502"), aVal);
//many inline array
@@ -7965,11 +7965,11 @@ void Test::testFuncLCM()
CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of LCM for failed", 0.0, m_pDoc->GetValue(aPos));
m_pDoc->SetString(aPos,"=LCM({3;6;9};{3;-6;9})");
aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for a array with values less then 0",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for an array with values less then 0",
OUString("Err:502"), aVal);
m_pDoc->SetString(aPos, "=LCM({3;6;9};{\"a\";6;9})");
aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for a array with strings",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for an array with strings",
OUString("Err:502"), aVal);
m_pDoc->SetString(aPos, "=LCM(12;24;36;48;60)");
@@ -7978,7 +7978,7 @@ void Test::testFuncLCM()
CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of LCM for failed", 0.0, m_pDoc->GetValue(aPos));
m_pDoc->SetString(aPos, "=LCM(\"a\";1)");
aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return #VALUE! for a array with strings",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return #VALUE! for an array with strings",
OUString("#VALUE!"), aVal);
m_pDoc->DeleteTab(0);
@@ -8053,7 +8053,7 @@ void Test::testFuncSUMSQ()
CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of SUMSQ for failed", 7920.0, m_pDoc->GetValue(aPos));
m_pDoc->SetString(aPos, "=SUMSQ(\"a\";1;\"d\";-4;2)");
OUString aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("SUMSQ should return #VALUE! for a array with strings",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("SUMSQ should return #VALUE! for an array with strings",
OUString("#VALUE!"), aVal);
m_pDoc->DeleteTab(0);
diff --git a/sc/qa/unit/ucalc_sharedformula.cxx b/sc/qa/unit/ucalc_sharedformula.cxx
index d07d7edaf391..5086af6515ee 100644
--- a/sc/qa/unit/ucalc_sharedformula.cxx
+++ b/sc/qa/unit/ucalc_sharedformula.cxx
@@ -137,7 +137,7 @@ void Test::testSharedFormulas()
CPPUNIT_ASSERT_EQUAL(static_cast<SCROW>(12), pFC->GetSharedTopRow());
CPPUNIT_ASSERT_EQUAL(static_cast<SCROW>(6), pFC->GetSharedLength());
CPPUNIT_ASSERT_EQUAL_MESSAGE("The token is expected to be shared.", pFC->GetCode(), pFC->GetSharedCode());
- // B20 shold be non-shared.
+ // B20 should be non-shared.
aPos.SetRow(19); // B20
pFC = m_pDoc->GetFormulaCell(aPos);
CPPUNIT_ASSERT_MESSAGE("B20 should be a formula cell.", pFC);
diff --git a/sc/qa/unit/ucalc_sort.cxx b/sc/qa/unit/ucalc_sort.cxx
index 689177d7e42e..8fd4627d86ce 100644
--- a/sc/qa/unit/ucalc_sort.cxx
+++ b/sc/qa/unit/ucalc_sort.cxx
@@ -366,7 +366,7 @@ void Test::testSortSingleRow()
m_pDoc->DeleteTab(0);
}
-// regression test fo fdo#53814, sorting doesn't work as expected
+// regression test of fdo#53814, sorting doesn't work as expected
// if cells in the sort are referenced by formulas
void Test::testSortWithFormulaRefs()
{