Skip to content
Snippets Groups Projects
Commit 5d487e88 authored by Wilson Jallet's avatar Wilson Jallet :clapper:
Browse files

[unittest/python] update test_std_array.py

+ do not test slice for std::array<Eigen..., k>
parent 82ec7849
No related branches found
No related tags found
No related merge requests found
Pipeline #33558 passed with warnings
...@@ -22,14 +22,14 @@ assert _ints_slice[1] == 3 ...@@ -22,14 +22,14 @@ assert _ints_slice[1] == 3
vecs = std_array.get_arr_3_vecs() vecs = std_array.get_arr_3_vecs()
assert len(vecs) == 3 assert len(vecs) == 3
# print(vecs[0]) print(vecs[0])
# print(vecs[1]) print(vecs[1])
# print(vecs[2]) print(vecs[2])
## Tests for the full-size slice # slices do not work for Eigen objects...
v2 = vecs[:] # v2 = vecs[:]
assert isinstance(v2, std_array.StdVec_VectorXd) # assert isinstance(v2, std_array.StdVec_VectorXd)
assert len(v2) == 3 # assert len(v2) == 3
print(v2.tolist()) # print(v2.tolist())
print(v2[0]) # print(v2[0])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment