Skip to content
Snippets Groups Projects
Unverified Commit 785502b9 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

test: add test of id helper

parent 4c12269e
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,7 @@ add_python_lib_unit_test("py-deprecation-policy"
add_python_lib_unit_test("py-return-by-ref"
"unittest/python/test_return_by_ref.py")
add_python_lib_unit_test("py-eigen-ref" "unittest/python/test_eigen_ref.py")
add_python_lib_unit_test("py-id" "unittest/python/test_id.py")
if(NOT NUMPY_WITH_BROKEN_UFUNC_SUPPORT)
add_python_lib_unit_test("py-user-type" "unittest/python/test_user_type.py")
......
import eigenpy
ldlt1 = eigenpy.LDLT()
ldlt2 = eigenpy.LDLT()
id1 = ldlt1.id()
id2 = ldlt2.id()
assert id1 != id2
assert id1 == ldlt1.id()
assert id2 == ldlt2.id()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment