[python-arrayfire] 208/250: Fixing types in arith test

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:49 UTC 2016


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

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

commit 4ed70d61ceec045cd4be016f6f5655282bf12d13
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Mon Dec 28 13:32:28 2015 -0500

    Fixing types in arith test
---
 tests/simple/arith.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/simple/arith.py b/tests/simple/arith.py
index e55881e..f8407c1 100644
--- a/tests/simple/arith.py
+++ b/tests/simple/arith.py
@@ -15,8 +15,8 @@ def simple_arith(verbose = False):
     display_func = _util.display_func(verbose)
     print_func   = _util.print_func(verbose)
 
-    a = af.randu(3,3,dtype=af.Dtype.u32)
-    b = af.constant(4, 3, 3, dtype=af.Dtype.u32)
+    a = af.randu(3,3)
+    b = af.constant(4, 3, 3)
     display_func(a)
     display_func(b)
 
@@ -99,6 +99,9 @@ def simple_arith(verbose = False):
     display_func(a == 0.5)
     display_func(0.5 == a)
 
+    a = af.randu(3,3,dtype=af.Dtype.u32)
+    b = af.constant(4, 3, 3, dtype=af.Dtype.u32)
+
     display_func(a & b)
     display_func(a & 2)
     c = a

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



More information about the debian-science-commits mailing list