[Libreoffice-commits] core.git: sal/qa
Stephan Bergmann
sbergman at redhat.com
Fri Jun 24 14:30:36 UTC 2016
sal/qa/rtl/math/test-rtl-math.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 67fccad964a1e556e762939177e588620b2a1889
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Jun 24 16:30:08 2016 +0200
clang-analyzer-deadcode.DeadStores
Change-Id: Idb7996e9063955dbb8126243670bdc30bd8dd97a
diff --git a/sal/qa/rtl/math/test-rtl-math.cxx b/sal/qa/rtl/math/test-rtl-math.cxx
index 3de4956..bdfd197 100644
--- a/sal/qa/rtl/math/test-rtl-math.cxx
+++ b/sal/qa/rtl/math/test-rtl-math.cxx
@@ -155,7 +155,7 @@ public:
CPPUNIT_ASSERT_EQUAL(-1.0,res);
rtl::math::setNan( &x);
res = rtl::math::erf(x);
- CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(x));
+ CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(res));
x = 3.0;
res = rtl::math::erf(-x);
CPPUNIT_ASSERT_DOUBLES_EQUAL( -rtl::math::erf(x), res, 1E-12);
@@ -174,7 +174,7 @@ public:
CPPUNIT_ASSERT_EQUAL(2.0,res);
rtl::math::setNan( &x);
res = rtl::math::erfc(x);
- CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(x));
+ CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(res));
x = 3.0;
res = rtl::math::erfc(-x);
CPPUNIT_ASSERT_DOUBLES_EQUAL( 2.0 - rtl::math::erfc(x), res, 1E-12);
@@ -197,7 +197,7 @@ public:
CPPUNIT_ASSERT_EQUAL(-1.0,res);
rtl::math::setNan( &x);
res = rtl::math::expm1(x);
- CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(x));
+ CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(res));
}
void test_log1p() {
@@ -223,7 +223,7 @@ public:
CPPUNIT_ASSERT_EQUAL(true, rtl::math::isNan(res));
rtl::math::setNan( &x);
res = rtl::math::log1p(x);
- CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(x));
+ CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(res));
}
CPPUNIT_TEST_SUITE(Test);
More information about the Libreoffice-commits
mailing list