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
hpp-fcl
Commits
7c2cca6d
Commit
7c2cca6d
authored
Nov 15, 2019
by
Gabriele Buondonno
Browse files
[test] [python] Add test_case
parent
a6f39d1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/python_unit/test_case.py
0 → 100644
View file @
7c2cca6d
import
unittest
import
numpy
as
np
class
TestCase
(
unittest
.
TestCase
):
def
assertApprox
(
self
,
a
,
b
,
epsilon
=
1e-6
):
return
self
.
assertTrue
(
np
.
allclose
(
a
,
b
,
epsilon
),
"%s !~= %s"
%
(
a
,
b
))
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