Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
f547941b
Verified
Commit
f547941b
authored
Jul 17, 2021
by
Justin Carpentier
Browse files
test: enforce testing of user type
parent
59039fba
Changes
1
Hide whitespace changes
Inline
Side-by-side
unittest/python/test_user_type.py
View file @
f547941b
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment