sc/qa/unit/ucalc_formula.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
New commits: commit f88cbf8f10366a176872fc6cfb375a7e1ee951f5 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Aug 11 12:17:22 2015 +0200 loplugin:stringconstant Change-Id: Ief6894e8d46c5f0e0c251263c5f540cbd460f7fc diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index 0a9fd2d..5b6d402 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits