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
Pierre Fernbach
curves
Commits
22719313
Commit
22719313
authored
May 05, 2020
by
Pierre Fernbach
Browse files
[tests][Python] fix cubic_hermite tests: replace == with isclose
parent
b33b907d
Pipeline
#9459
passed with stage
in 5 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/test/test.py
View file @
22719313
...
...
@@ -600,7 +600,7 @@ class TestCurves(unittest.TestCase):
a
.
max
()
a
(
0.4
)
self
.
assertTrue
((
a
(
0.
)
==
array
([
1.
,
2.
,
3.
])).
all
())
self
.
assertTrue
((
a
.
derivate
(
0.
,
1
)
==
array
([[
2.
,
2.
,
2.
]]).
transpose
()).
all
())
self
.
assertTrue
(
isclose
(
a
.
derivate
(
0.
,
1
)
,
array
([[
2.
,
2.
,
2.
]]).
transpose
()).
all
())
self
.
assertTrue
((
a
.
derivate
(
0.4
,
0
)
==
a
(
0.4
)).
all
())
a
.
derivate
(
0.4
,
2
)
return
...
...
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