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
2edf3ead
Commit
2edf3ead
authored
Jul 22, 2021
by
Rohan Budhiraja
Browse files
user-type: add unit test for fill()
parent
8e83e0d7
Pipeline
#15309
failed with stage
in 15 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
unittest/python/test_user_type.py
View file @
2edf3ead
...
...
@@ -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'
)
...
...
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