summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-11 12:17:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-11 12:17:38 +0200
commitf88cbf8f10366a176872fc6cfb375a7e1ee951f5 (patch)
tree08dc06021c8697f1893c649632762d3942fa753e /sc
parent2c587f08edaec09d5af53504c916c4dee0617555 (diff)
loplugin:stringconstant
Change-Id: Ief6894e8d46c5f0e0c251263c5f540cbd460f7fc
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/ucalc_formula.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 0a9fd2d156d3..5b6d40247dee 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -5532,16 +5532,16 @@ void Test::testFuncFTEST()
m_pDoc->SetString(aPos, "=FTEST(A1:C3;D1:F3)");
m_pDoc->SetValue(0, 0, 0, 9.0); // A1
OUString aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_MESSAGE("FTEST should return #VALUE! for less than 2 values",
- OUString::createFromAscii("#VALUE!") == aVal);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("FTEST should return #VALUE! for less than 2 values",
+ OUString("#VALUE!"), aVal);
m_pDoc->SetValue(0, 1, 0, 8.0); // A2
aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_MESSAGE("FTEST should return #VALUE! for less than 2 values",
- OUString::createFromAscii("#VALUE!") == aVal);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("FTEST should return #VALUE! for less than 2 values",
+ OUString("#VALUE!"), aVal);
m_pDoc->SetValue(3, 0, 0, 5.0); // D1
aVal = m_pDoc->GetString(aPos);
- CPPUNIT_ASSERT_MESSAGE("FTEST should return #VALUE! for less than 2 values",
- OUString::createFromAscii("#VALUE!") == aVal);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("FTEST should return #VALUE! for less than 2 values",
+ OUString("#VALUE!"), aVal);
m_pDoc->SetValue(3, 1, 0, 6.0); // D2
CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE("Calculation of FTEST failed", 1.0000, m_pDoc->GetValue(aPos), 10e-4);
m_pDoc->SetValue(1, 0, 0, 6.0); // B1