From 2edf3ead8931af8401c7637a12ed2d699dedc909 Mon Sep 17 00:00:00 2001 From: Rohan Budhiraja <proyan@users.noreply.github.com> Date: Thu, 22 Jul 2021 23:45:33 +0200 Subject: [PATCH] user-type: add unit test for fill() --- unittest/python/test_user_type.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unittest/python/test_user_type.py b/unittest/python/test_user_type.py index 83804208..bcdf78e1 100644 --- a/unittest/python/test_user_type.py +++ b/unittest/python/test_user_type.py @@ -10,6 +10,11 @@ def test(mat): assert (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.copy(order='F') + mat.copy(order='C') -- GitLab