Commit 941111c2 authored by Rohan Budhiraja's avatar Rohan Budhiraja
Browse files

assert() instead of assert

parent 8e83e0d7
Pipeline #15267 failed with stage
in 19 minutes and 37 seconds
*~
*build*
*.orig
\ No newline at end of file
......@@ -7,8 +7,8 @@ cols = 20
def test(mat):
mat[:] = mat.dtype.type(10.)
mat_copy = mat.copy()
assert (mat == mat_copy).all()
assert not (mat != mat_copy).all()
assert((mat == mat_copy).all())
assert(not (mat != mat_copy).all())
mat_op = mat + mat
mat_op = mat.copy(order='F') + mat.copy(order='C')
......@@ -20,10 +20,10 @@ def test(mat):
mat_op = -mat;
assert (mat >= mat).all()
assert (mat <= mat).all()
assert not (mat > mat).all()
assert not (mat < mat).all()
assert((mat >= mat).all())
assert((mat <= mat).all())
assert(not (mat > mat).all())
assert(not (mat < mat).all())
mat = user_type.create_double(rows,cols)
test(mat)
......@@ -33,4 +33,4 @@ test(mat)
v = user_type.CustomDouble(1)
a = np.array(v)
assert type(v) == a.dtype.type
assert(type(v) == a.dtype.type)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment