diff options
author | I-Jui (Ray) Sung <ray@multicorewareinc.com> | 2013-11-17 13:31:22 -0600 |
---|---|---|
committer | I-Jui (Ray) Sung <ray@multicorewareinc.com> | 2013-11-17 13:32:36 -0600 |
commit | fabda86553e6ff9bb6dc03d88a1599245f54ac15 (patch) | |
tree | 89f58b4ccbd816fe15ad161a37661590af1840a6 /sc/qa | |
parent | 1d89cd08ab3566375e30b17f1b17bc240ca907a4 (diff) |
GPU Calc: add tolerance when expected == 0 for weibull
Change-Id: I60cd4901f614f64d8bf28b2e5477edb00f5b9651
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/opencl-test.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/qa/unit/opencl-test.cxx b/sc/qa/unit/opencl-test.cxx index 987fc40a67ff..ed38b61b34d1 100644 --- a/sc/qa/unit/opencl-test.cxx +++ b/sc/qa/unit/opencl-test.cxx @@ -1788,7 +1788,8 @@ void ScOpenclTest::testStatisticalFormulaWeibull() { double fLibre = pDoc->GetValue(ScAddress(4,i,0)); double fExcel = pDocRes->GetValue(ScAddress(4,i,0)); - CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel)); + CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, + fExcel == 0?1e-4:fabs(1e-4*fExcel)); } xDocSh->DoClose(); xDocShRes->DoClose(); |