Skip to content
Snippets Groups Projects
Commit 2edf3ead authored by Rohan Budhiraja's avatar Rohan Budhiraja
Browse files

user-type: add unit test for fill()

parent 8e83e0d7
No related branches found
No related tags found
No related merge requests found
Pipeline #15309 failed
...@@ -10,6 +10,11 @@ def test(mat): ...@@ -10,6 +10,11 @@ def test(mat):
assert (mat == mat_copy).all() assert (mat == mat_copy).all()
assert not (mat != mat_copy).all() assert not (mat != mat_copy).all()
mat.fill(mat.dtype.type(20.))
mat_copy = mat.copy()
assert((mat == mat_copy).all())
assert(not (mat != mat_copy).all())
mat_op = mat + mat mat_op = mat + mat
mat_op = mat.copy(order='F') + mat.copy(order='C') mat_op = mat.copy(order='F') + mat.copy(order='C')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment