[arrayfire] 56/248: typo fixes in mean unit test

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Nov 17 15:53:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.

commit f26cc0d21dba4485534b7cdfe9ad2dc751cd0718
Author: pradeep <pradeep at arrayfire.com>
Date:   Mon Sep 14 13:28:15 2015 -0400

    typo fixes in mean unit test
---
 test/mean.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/mean.cpp b/test/mean.cpp
index 6081fcc..fed7c96 100644
--- a/test/mean.cpp
+++ b/test/mean.cpp
@@ -137,12 +137,12 @@ TYPED_TEST(Mean, Dim0Matrix)
 
 TYPED_TEST(Mean, Wtd_Dim0Matrix)
 {
-    meanDimTest<TypeParam>(string(TEST_DIR "/mean/wtd_mean_dim0_mat.test"), 0);
+    meanDimTest<TypeParam>(string(TEST_DIR "/mean/wtd_mean_dim0_mat.test"), 0, true);
 }
 
 TYPED_TEST(Mean, Wtd_Dim1Matrix)
 {
-    meanDimTest<TypeParam>(string(TEST_DIR "/mean/wtd_mean_dim1_mat.test"), 1);
+    meanDimTest<TypeParam>(string(TEST_DIR "/mean/wtd_mean_dim1_mat.test"), 1, true);
 }
 
 TYPED_TEST(Mean, Dim1Cube)
@@ -287,8 +287,8 @@ void weightedMeanAllTest(af::dim4 dims)
     array w(dims, &(wts.front()));
     outType output = mean<outType>(a, w);
 
-    ASSERT_NEAR(::real(output), ::real(gold), 1.0e-3);
-    ASSERT_NEAR(::imag(output), ::imag(gold), 1.0e-3);
+    ASSERT_NEAR(::real(output), ::real(gold), 1.0e-2);
+    ASSERT_NEAR(::imag(output), ::imag(gold), 1.0e-2);
 }
 
 TYPED_TEST(WeightedMean, Basic)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list