[arrayfire] 19/408: Unwrap: Remove duplicate asserts, add intl, uintl to test

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:07 UTC 2015


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

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit dc18c34a63bb286b96d5f04293070c4c148e0d3f
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Fri Jun 19 16:51:09 2015 -0400

    Unwrap: Remove duplicate asserts, add intl, uintl to test
---
 src/api/c/unwrap.cpp | 2 --
 test/unwrap.cpp      | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/api/c/unwrap.cpp b/src/api/c/unwrap.cpp
index 2b173b3..3816874 100644
--- a/src/api/c/unwrap.cpp
+++ b/src/api/c/unwrap.cpp
@@ -37,8 +37,6 @@ af_err af_unwrap(af_array *out, const af_array in, const dim_t wx, const dim_t w
         DIM_ASSERT(3, wy > 0 && wy <= idims[1] + py);
         ARG_ASSERT(4, sx > 0);
         ARG_ASSERT(5, sy > 0);
-        ARG_ASSERT(4, sx > 0);
-        ARG_ASSERT(5, sy > 0);
         ARG_ASSERT(6, px >= 0 && px < wx);
         ARG_ASSERT(7, py >= 0 && py < wy);
 
diff --git a/test/unwrap.cpp b/test/unwrap.cpp
index a108c05..0602caf 100644
--- a/test/unwrap.cpp
+++ b/test/unwrap.cpp
@@ -34,7 +34,7 @@ class Unwrap : public ::testing::Test
 };
 
 // create a list of types to be tested
-typedef ::testing::Types<float, double, cfloat, cdouble, int, unsigned int, char, unsigned char> TestTypes;
+typedef ::testing::Types<float, double, cfloat, cdouble, int, unsigned int, intl, uintl, char, unsigned char> TestTypes;
 
 // register the type list
 TYPED_TEST_CASE(Unwrap, TestTypes);

-- 
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