From f547941bb60bcd85699745914f97574c7a7bcc3e Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Sat, 17 Jul 2021 00:45:49 +0200 Subject: [PATCH] test: enforce testing of user type --- 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 057cfe95..8ae8cc12 100644 --- a/unittest/python/test_user_type.py +++ b/unittest/python/test_user_type.py @@ -1,4 +1,5 @@ import user_type +import numpy as np rows = 10 cols = 20 @@ -29,3 +30,7 @@ test(mat) mat = user_type.create_float(rows,cols) test(mat) + +v = user_type.CustomDouble(1) +a = np.array(v) +assert type(v) == a.dtype.type -- GitLab