Skip to content
Snippets Groups Projects
Verified Commit f547941b authored by Justin Carpentier's avatar Justin Carpentier
Browse files

test: enforce testing of user type

parent 59039fba
No related branches found
No related tags found
No related merge requests found
import user_type import user_type
import numpy as np
rows = 10 rows = 10
cols = 20 cols = 20
...@@ -29,3 +30,7 @@ test(mat) ...@@ -29,3 +30,7 @@ test(mat)
mat = user_type.create_float(rows,cols) mat = user_type.create_float(rows,cols)
test(mat) test(mat)
v = user_type.CustomDouble(1)
a = np.array(v)
assert type(v) == a.dtype.type
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