Skip to content

Commit f35894c

Browse files
committed
unittest: rename vector.cpp to std_vector.cpp
1 parent ab28091 commit f35894c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

unittest/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if(NOT ${EIGEN3_VERSION} VERSION_LESS "3.2.0")
3333
add_lib_unit_test(eigen_ref)
3434
endif()
3535
add_lib_unit_test(user_type)
36-
add_lib_unit_test(vector)
36+
add_lib_unit_test(std_vector)
3737

3838
add_python_unit_test("py-matrix" "unittest/python/test_matrix.py" "unittest")
3939
add_python_unit_test("py-geometry" "unittest/python/test_geometry.py"

unittest/python/test_std_vector.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import eigenpy
33
import inspect
44
import pprint
5-
import vector
6-
from vector import printVectorOfMatrix, printVectorOf3x3, copyStdVector
5+
import std_vector
6+
from std_vector import printVectorOfMatrix, printVectorOf3x3, copyStdVector
77

88
np.random.seed(0)
99

@@ -43,8 +43,8 @@ def checkAllValues(li1, li2):
4343
assert "StdVec_Mat3d" in printVectorOf3x3.__doc__
4444
printVectorOf3x3(l4)
4545

46-
l4_copy2 = vector.copyStdVec_3x3(l4)
47-
assert isinstance(l4_copy2, vector.StdVec_Mat3d)
46+
l4_copy2 = std_vector.copyStdVec_3x3(l4)
47+
assert isinstance(l4_copy2, std_vector.StdVec_Mat3d)
4848

4949

5050
def checkZero(l):
@@ -54,21 +54,21 @@ def checkZero(l):
5454

5555
print("Check setZero() works:")
5656
print("l1:")
57-
vector.setZero(l1)
57+
std_vector.setZero(l1)
5858
print(l1)
5959
checkZero(l1)
6060
print("-----------------")
6161

6262
print("l2:")
6363
l2_py = l2.tolist()
64-
vector.setZero(l2_py)
64+
std_vector.setZero(l2_py)
6565
pprint.pprint(l2_py)
6666
checkZero(l2_py)
6767
print("-----------------")
6868

6969
l3_copy = copyStdVector(l3)
7070
print("l3_std:")
71-
vector.setZero(l3_copy)
71+
std_vector.setZero(l3_copy)
7272
pprint.pprint(list(l3_copy))
7373
checkZero(l3_copy)
7474
print("-----------------")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void setZero(std::vector<MatType> &Ms) {
2828
}
2929
}
3030

31-
BOOST_PYTHON_MODULE(vector) {
31+
BOOST_PYTHON_MODULE(std_vector) {
3232
namespace bp = boost::python;
3333
using namespace eigenpy;
3434

0 commit comments

Comments
 (0)