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
Guilhem Saurel
ndcurves
Commits
c9705b45
Commit
c9705b45
authored
Dec 20, 2019
by
Pierre Fernbach
Browse files
[Tests][Python] update to changes in operator == and isEquivalent
parent
0646ec00
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/test/test.py
View file @
c9705b45
...
...
@@ -1214,8 +1214,10 @@ class TestCurves(unittest.TestCase):
# test with polynomial/bezier
pol_4
=
polynomial
(
p0
.
reshape
(
-
1
,
1
),
dp0
.
reshape
(
-
1
,
1
),
p1
.
reshape
(
-
1
,
1
),
dp1
.
reshape
(
-
1
,
1
),
min
,
max
)
b_4
=
convert_to_bezier
(
pol_4
)
self
.
assertTrue
(
pol_4
==
b_4
)
self
.
assertTrue
(
pol_4
!=
a1
)
self
.
assertTrue
(
pol_4
.
isEquivalent
(
b_4
))
self
.
assertTrue
(
pol_4
.
isEquivalent
(
b_4
,
1e-6
))
self
.
assertTrue
(
pol_4
.
isEquivalent
(
b_4
,
1e-6
,
2
))
self
.
assertFalse
(
pol_4
.
isEquivalent
(
a1
))
#test with SE3 :
init_quat
=
Quaternion
.
Identity
()
...
...
@@ -1239,6 +1241,5 @@ class TestCurves(unittest.TestCase):
self
.
assertTrue
(
se3_1
!=
se3_4
)
if
__name__
==
'__main__'
:
unittest
.
main
()
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